1
A-z 0-9
_^$~!#%&–{}()@'`
?
*
/s
[/s]
DIR[<FILENAME>]
Parameter
DIR /P C:\Data
DIR[<FILENAME>][/P][/S][/W]
Lists one screen at a time
Presents information using wide format, where details are omitted and files and folders are
listed in columns on the screen
Lists all files with a .txt file extension in the default path
Lists all files with a .txt file extension in the D:\data folder
Checks that a single file, such as notes.txt, is present
Includes subdirectory entries
Use the /s switch to include subdirectories in the copy; this command copies all files in the
directory C:\docs, as well as all subdirectories under \docs and their files, to drive E, unless the
subdirectory is empty
Same as /s but empty subdirectories are included in the copy
The /d switch examines the date; this command copies all files from the directory
C:\docs created or modified on or after January 12, 2020
Use the /y switch to overwrite existing files without prompting
Use the /c switch to keep copying even when an error occurs
The /s switch includes subdirectories in the copy but does not include
empty directories
The /e switch includes subdirectories, even the empty ones
Records activity to a log file and overwrites the current log file
Appends a record of all activity to an existing log file
Moves files and directories, deleting them from the source
Deletes files and directories at the destination that no longer exist at the
source
chkdsk /f Lost clusters Cross-linked clusters
chkdsk /r Lost clusters Cross-linked clusters Bad sectors
chkdsk
chkdsk C:/f chkdsk C:/r chkdsk C:>logfile.txt
defrag C: Defrag drive C:
defrag /C Defrag all volumes on the computer, including drive C:
format D: Performs a full format of drive D: using the default file system for the volume type.
format D: /q Performs a quick format of drive D:
format D: /fs:NTFS Formats drive D: using the NTFS file system.
format D: /fs:FAT32 Formats drive D: using the FAT32 file system.
shutdown /r Restart the local computer.
shutdown /s Shut down the local computer.
shutdown /s /m \\PC2 Shut down the remote computer named \\PC2.
shutdown /s /m \\PC2 /t 60 Displays the Remote Shutdown Dialog box so you can choose computers
on the network to shut down.
shutdown /i Shut down the \\pc2 computer after a 60-second delay.
shutdown /s /full /t 0 immediately performs a full shutdown rather than hibernating the
kernel, which is normally done to prepare for a Windows 10 QuickStart.
Windows PowerShell
Windows PowerShell
▪