Xena Gabrielle
Eternal Poster
...para sa mga kagaya kong baguhan sa programming

LIST OF SOME DOS COMMANDS
First of all open command Prompt
Go to start> run> cmd
1. To create a new directory.
Command:
C:\>mkdir häçk
Or
C:\>md häçk
[häçk is your directory name]
2. To remove a directory.
Command:
C:\>rmdir häçk
Or
C:\>rd häçk
[häçk is your directory name].
3. To clear the screen.
Command:
C:\>cls
4. To see the contents or subdirectory of directory.
Command:
C:\>dir
Or
C:\>dir /p
[“dir /p” to see page by page].
Or
C:\>dir /a
[“dir /a” to see all directories+hidden directories].
Or
C:\>dir /ah
[“dir /ah” to see only hidden directories].
5. To change the directory.
Command:
C:\>cd häçk
[häçk is your directory name].
C:\>cd..
[cd followed by 2 periods takes you one level up i.e to the parent directory]
C:\>cd\
[cd followed by backslash periods takes you to the top directory i.e directly under the drive]
6. To rename a directory or file.
Command:
C:\>ren häçk häçknew
[By this command the folder häçk is rename to häçknew].
7. To move a file from one destination to another.
C:\>move sourcepath destinationpath
Command:
C:\>move C:\häçk.txt D:\
[häçk.txt is your directory name].
8. To create a new file.
Command:
C:\>copy con häçk.txt
[Once you create the file press enter and type the information inside the file.
To save the file hold CTRL and press Z . This will return ^Z. Once this has been entered press enter to save and exit the file.].
[häçk.txt is your file name].
9. To see the content of a text file.
Command:
C:\>type häçk.txt
[häçk.txt is your file name].
10. To delete a file.
Command:
C:\>del häçk.txt
[häçk.txt is your file name].
11. To edit a file.
Command:
C:\>edit häçk.txt
[häçk.txt is your file name].
12. To copy a file from one destination to another.
C:\>copy sourcepath destinationpath
Command:
C:\>copy C:\häçk.txt D:\
[häçk.txt is your file name].
13. To copy a directory from one destination to another.
C:\>xcopy sourcepath destinationpath /s
Command:
C:\>xcopy C:\häçk D:\ /s
[häçk is your directory name]
14. Exit from command prompt.
Command:
C:\>exit


LIST OF SOME DOS COMMANDS
First of all open command Prompt
Go to start> run> cmd
1. To create a new directory.
Command:
C:\>mkdir häçk
Or
C:\>md häçk
[häçk is your directory name]
2. To remove a directory.
Command:
C:\>rmdir häçk
Or
C:\>rd häçk
[häçk is your directory name].
3. To clear the screen.
Command:
C:\>cls
4. To see the contents or subdirectory of directory.
Command:
C:\>dir
Or
C:\>dir /p
[“dir /p” to see page by page].
Or
C:\>dir /a
[“dir /a” to see all directories+hidden directories].
Or
C:\>dir /ah
[“dir /ah” to see only hidden directories].
5. To change the directory.
Command:
C:\>cd häçk
[häçk is your directory name].
C:\>cd..
[cd followed by 2 periods takes you one level up i.e to the parent directory]
C:\>cd\
[cd followed by backslash periods takes you to the top directory i.e directly under the drive]
6. To rename a directory or file.
Command:
C:\>ren häçk häçknew
[By this command the folder häçk is rename to häçknew].
7. To move a file from one destination to another.
C:\>move sourcepath destinationpath
Command:
C:\>move C:\häçk.txt D:\
[häçk.txt is your directory name].
8. To create a new file.
Command:
C:\>copy con häçk.txt
[Once you create the file press enter and type the information inside the file.
To save the file hold CTRL and press Z . This will return ^Z. Once this has been entered press enter to save and exit the file.].
[häçk.txt is your file name].
9. To see the content of a text file.
Command:
C:\>type häçk.txt
[häçk.txt is your file name].
10. To delete a file.
Command:
C:\>del häçk.txt
[häçk.txt is your file name].
11. To edit a file.
Command:
C:\>edit häçk.txt
[häçk.txt is your file name].
12. To copy a file from one destination to another.
C:\>copy sourcepath destinationpath
Command:
C:\>copy C:\häçk.txt D:\
[häçk.txt is your file name].
13. To copy a directory from one destination to another.
C:\>xcopy sourcepath destinationpath /s
Command:
C:\>xcopy C:\häçk D:\ /s
[häçk is your directory name]
14. Exit from command prompt.
Command:
C:\>exit
