Windows Command Line Tutorial Creating And Removing Directories
--Steps To Create And Remove Directories:
1)Create A New Directory: Type mkdir command followed by directory name to create a new directory.In the given figure the TEST directory is created.
2)Change The Current Working Directory:In order to move to the newly created directory use the change directory command or type CD followed by directory name as shown below:
3)Check The Directory Contents:In order to check the directory contents just type DIR command and list of directory contents will be displayed.
4)Clear the screen:In order to clear the screen type CLS command and hit enter to clear all the contents of screen as shown below:
5)Create New File:To create new file type NUL> command followed by file name and hit enter.In the following image demo is created.
6)Delete File:In order to delete files type DEL command followed by file name. In the following figure demo file is deleted:
7)Removing/Deleting Empty Directory:To remove directory type RMDIR command followed by directory name.In the given figure the test directory is removed/deleted.
8)Removing Directory That Contains Files:To remove directory that contains files type RMDIR/S
followed by directory name.In the given figure the test directory which contain demo file is removed/deleted.
3)Check The Directory Contents:In order to check the directory contents just type DIR command and list of directory contents will be displayed.
4)Clear the screen:In order to clear the screen type CLS command and hit enter to clear all the contents of screen as shown below:
5)Create New File:To create new file type NUL> command followed by file name and hit enter.In the following image demo is created.
6)Delete File:In order to delete files type DEL command followed by file name. In the following figure demo file is deleted:
7)Removing/Deleting Empty Directory:To remove directory type RMDIR command followed by directory name.In the given figure the test directory is removed/deleted.
8)Removing Directory That Contains Files:To remove directory that contains files type RMDIR/S
followed by directory name.In the given figure the test directory which contain demo file is removed/deleted.
No comments:
Post a Comment