Change the directories in MS DOS
Hi All,
Can any one guide me that how to change the directories in MS DOS and Window Command Line? ..
Thanks in advance
Hi All,
Can any one guide me that how to change the directories in MS DOS and Window Command Line? ..
Thanks in advance
To change directories while in MS-DOS, use the cd command. Below are some basic examples of how this command can be used to change directories.
How to get MS DOS prompt or Windows Command line?
Before changing directories, you need to know what directories are available in the current directory. To do this, use the MS-DOS dir command. For example, type the below command to only list directories in the current directory.
dir /ad
cd windows
If you need to move into multiple directories with one command, you can use a command similar to the below example. In the below example, the command would move into the system directory, which is in the windows directory.
cd windowssystem
Finally, if you need to move back a directory, you can use the below command.
cd..
If you were in the Windows directory when you typed this command, it would move you back to the C: directory.
To change directories while in windows command line (MS-DOS), use the cd command.
cd command  is used  to create  new  directory  from  "current" directory .
cdstands  for "change directory".
The command to change directory can be written as either:
cd directory
or
cd  drive:directory
The  directory can start with a  or be relative to the current directory.
Example:
 If the current directory is C:dir then typing cd newdir will change the current directory to C:dirnewdir  assuming that there is in fact a newdir sub-directory inside C:dir.
To remove Directory we use the command  rd filename.
Example:
rd rem (rem is the directory name).
We can use rd as an abbreviation for rmdir