Skip to content

Scripting Reading Journal

BenWare-FED edited this page Nov 6, 2023 · 1 revision

The command prompt window is used to troubleshoot software issues.

Hardware devices get drive letters A: - Z:.

When typing a command, capitalization does not matter but order and format do. Files are stored in folders, also called directories. The root directory is where all directories start and can be accessed. Each file in a directory must be uniquely named but different directories can have the same file name in both. Subdirectory are folders within folders.

Commands:

  • Tree: Shows all of the directories and subdirectories in a specified directory.
  • CD: Used to change the directory the command prompt is in.
  • dir: Lists all of the directories and files in the current directory the command prompt is in.
  • MD: Makes a directory in the command prompt's current location.
  • RD: Deletes a specified directory or subdirectory if it is empty.
  • del: Deletes a specified file.
  • type: Displays .txt and .bat files.
  • copy: Duplicates a file
  • xcopy: Copies and backups files and directories
  • robocopy: Copies a directory and everything within it.
  • ATTRIB: Sets, removes or shows file or directory attributes

Commands are useful for fixing problems using the command prompt and for scripting. PowerShell coupled with scripting helps automate support tasks.

Clone this wiki locally