Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. REM cd or chdir to change directories
  2. cd Desktop
  3. chdir C:\
  4.  
  5. REM use "." or ".." to refer to the current or parent directory, respectively
  6. cd ..
  7. cd .\Desktop
  8.  
  9. REM use no arguments just to print your current location, if you get lost
  10. cd
  11.  
  12. REM list the current directory contents
  13. dir
  14.  
  15. REM add "/A" to see hidden and protected files too
  16. dir /A
  17.  
  18. REM use "help" to get a quick reference sheet
  19. help dir
  20.  
  21. REM clear off your terminal with cls
  22. cls
  23.  
  24. REM echo just returns what you give it
  25. echo hello world
  26.  
  27. REM this is especially useful when combined with "redirection operators": ">" and ">>"
  28. echo creates/overwrites a file! > NewOrOverwrittenFile.txt
  29. echo appends to a file! >> Appending.log
  30.  
  31. REM paging output can be done with "more". Note the use of the "|" character to direct the output stream
  32. echo "Some command that spits out a whole bunch of stuff" | more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement