PCSTATS Main Page Follow PCSTATS on Facebook PCSTATS RSS Feed PCSTATS Twitter Feed + Motherboards
+ Videocards
+ Memory
+ Beginners Guides
News & Advanced Search  Feedback?
[X]   Directory of
Guides & Reviews

Beginners Guides
Weekly Newsletter
Archived Newsletters

+70 MORE Beginner GUIDES....  
 
Contact the Suite 66 Advertising Agency
Seagate Backup Plus Slim External USB 3.0 2TB Hard Drive Review

Beginners Guides: Windows Command Prompt

Beginners Guides: Windows Command Prompt - PCSTATS
Abstract: Back in the heyday of text-based operating systems like Unix and DOS, the command prompt was the operating system.
Filed under: Beginners Guides Published:  Author: 
External Mfg. Website: PCSTATS Mar 05 2011   Mike Dowler  
Home > Reviews > Beginners Guides > PCSTATS

Creating and Deleting Folders and Files

You can create and delete folders within the command prompt by using the make directory 'MKDIR' and remove directory 'RMDIR' commands. Making a directory is as simple as typing: MKDIR (directory name)

And to remove an empty directory type: RMDIR (directory name)

Note that like all command prompt commands, these depend on your current location in the command prompt. So if you were at C:\> and typed 'MKDIR myfolder', you would have created 'C:\myfolder'. If you were at 'D:\mydata>' and typed the same command, you would create 'D:\mydata\myfolder'. You can speed things up by adding paths to the command, as we did with 'CD' above.

type: MKDIR windows\system32\drivers\creative

From the C:\> prompt will create the 'creative' directory in 'windows\system32\drivers'. Note that when you use the MKDIR command in this way, any folders in your command that do not exist will be created. For example, if you typed: MKDIR windows\mike\mikedrivers the 'mike' and 'mikedrivers' directories would both be created.

The DEL command can be used to delete files within the directories you create. Typing 'del (directory name)' will delete all files in that directory, while typing 'del (filename)' will delete that file. You can add directories to the path of the DEL command, for example:

type: DEL windows\mikedir\mikedrivers\mike1.exe

This would delete the 'mike1.exe' file within the directory 'windows\mikedir\mikedrivers\'.

Running Programs Within the Command Prompt

The second part of PCstats Guide to the Windows XP Command Prompt will deal with several command prompt utilities that can make dealing with Windows much easier, especially when networking. To run a utility in the command prompt, you need only type its name. For example; MKDIR, DEL and CD are all little programs that you have already run from the command prompt. Generally you need to be in the same directory or folder as the command file (.EXE, .COM or .BAT) for an application you want to run when you type its name, but the command prompt uses a system taken from previous versions of DOS (and older OS) to ensure that this is not always necessary.

A 'path' statement is automatically loaded with the command prompt, telling it to always look in certain locations on the disk when the user types in a command. For example, without this path statement, when you type: DEL windows\system32\mikefile.txt the command would only work if you were currently in the folder containing the DEL command file.

With the path statement, the system knows to check certain directories for command files each time the user types something. As long as it finds the DEL command somewhere within these directories, the entry above will work.

< Previous Page © 2017 PCSTATS.com
Please respect the time and effort that went into creating each PCSTATS Beginners Guide, do not illegally copy. Thank you.
Next Page >

 

Contents of Article: PCSTATS
 Pg 1.  Beginners Guides: Windows Command Prompt
 Pg 2.  Part 1: Entering and using the Windows XP command prompt
 Pg 3.  Moving Between Folders
 Pg 4.  Switches and Command Help
 Pg 5.  — Creating and Deleting Folders and Files
 Pg 6.  Command Redirectors
 Pg 7.  More Handy CMD Commands
 Pg 8.  All About IPConfig
 Pg 9.  Tree and Netstat
 Pg 10.  Tasklist and SystemInfo

SEARCH PCSTATS 
Use the power of Google to search all of PCSTATS and the PCSTATS Forums. Tell us what you think of this new feature - FEEDBACK?
   11 / 24 / 2017 | 12:57AM
Hardware Sections 


google
 
PCSTATS Network Features Information About Us Contact
FrostyTech
TransmetaZone
BeginnersPC
PCSTATS Newsletter
PCSTATS Forums
ShoppingList Assistance
Tech Glossary
Technology WebSite Listings
PermaLink News
Archived News
Submit News (Review RSS Feed)
Site Map
PCstats Wallpaper
About Us
Employment
Privacy Policy
Advertise on PCSTATS

How's Our Driving?
© Copyright 1999-2017 www.pcstats.com All rights reserved. Privacy policy and Terms of Use.