Advertisement
dcandygmailcom

Command Prompt Basics

Feb 16th, 2019
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. Command Prompt Basics
  2. ---------------------
  3.  
  4. Open Command Prompt As Administrator
  5.  
  6. Start - All Programs - Accessories - Right click Command Prompt and choose Run As Administrator.
  7.  
  8. Paste Commands Into a Command Prompt
  9.  
  10. Paste by right clicking in the Command Prompt window and choosing Paste. You may need to then press Enter to run the command or run the last command if pasting multiple commands.
  11.  
  12. Copy Text From Command Prompt
  13.  
  14. To copy the text output right click the window - Mark then select the text and press Enter.
  15.  
  16. Configure Command Prompt
  17.  
  18. To configure the command prompt. Right click the Command Prompt's titlebar - Properties - Layout tab - and enter 1000 for Screen Buffer Size Height and 43 (or 50) for Window Size Height. Change the Color (Color tab) and Font (Font tab) if you want.
  19.  
  20. Basic commands
  21.  
  22. In the command prompt folders are known as directories for historical reasons.
  23.  
  24. To list the current directory
  25.  
  26. dir
  27.  
  28. To list a specified directory
  29.  
  30. dir "c:\windows"
  31.  
  32. To list files of a certain type. * means all characters while ? matches a single character.
  33.  
  34. dir "c:\windows\*.exe"
  35. dir "c:\windows\?otepad.*"
  36.  
  37. Some other commands to look up in Help.
  38.  
  39. copy - copy a file
  40. ren - rename a file
  41. del - delete a file
  42. rd - delete a directory
  43. cd - change the current directory
  44.  
  45. Help
  46.  
  47. For a list of commands, in a command prompt type
  48.  
  49.  
  50.  
  51. help
  52.  
  53.  
  54.  
  55. For help on a command type
  56.  
  57.  
  58.  
  59. help commandname
  60.  
  61.  
  62.  
  63. or
  64.  
  65.  
  66.  
  67. commandname /?
  68.  
  69.  
  70.  
  71. eg
  72.  
  73.  
  74.  
  75. cd /?
  76.  
  77.  
  78. Keyboard Tips
  79.  
  80. Press Up or Down Arrow key to cycle between previously typed commands.
  81.  
  82. Ctrl + D and Ctrl + F complete directory/folder paths and filenames for you.
  83. .
  84.  
  85. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement