TIME Display or set the system time – TIME 13:54 (Set the new time) TIME /T (Only output the current time without asking new time) TIMEOUT Wait for specified seconds or until any key is pressed. For use within a – batch program. TITLE Set the window title for a CMD.EXE session – TRACERT Trace route (find IP address) to a remote host – TRACERT TechForWorld.com Graphical display of directory structure of a folder or a drive TREE – TREE | MORE (Show tree for current directory. Pause after each screen) TREE | MORE (Show tree for specified path) “D:\Games” TREE > a tree structure to file) “D:\Tree.txt” (Save TSDISCON Disconnect a Remote Desktop Session – TYPE Display the contents of a text file – TYPE | MORE (Display output on screen, pause after each screen) “D:\file.txt” TYPE > NewFile.txt (Copy content to a new file) “D:\file.txt” TYPE >> ExistingFile.txt (Overwrite content to an existing file) “D:\file.txt” TYPE nul > file.txt (Create a zero byte (empty) file) TYPEPERF Write performance data to a log file or window – VER Display operating system version information – VERIFY Verify that your files are written correctly to the disk – VERIFY (Display current verify status) VERIFY ON or VERIFY OFF (Turn file verification on or off) By default the Command Prompt has verify OFF. Windows Explorer will always copy with verify ON. VOL Display the disk volume label and its serial number – WAITFOR Wait for or send a signal – WEVTUTIL Clear event logs, enable/disable/query logs – WHERE Search for files in a directory tree – WHERE /R D:\ Tech (Find all files named tech in drive D: and all sub-folders) WHERE /R D:\ *.txt (Find all txt files)
TIME – Display or set the system time TIME 13:54 (Set the new time) TIME /T (Only output the current time without asking new time) TIMEOUT – Wait for specified seconds or until any key is pressed. For use within a batch program. TITLE – Set the window title for a CMD.EXE session TRACERT – Trace route (find IP address) to a remote host TRACERT TechForWorld.com TREE – Graphical display of directory structure of a folder or a drive TREE | MORE (Show tree for current directory. Pause after each screen) TREE “D:\Games” | MORE (Show tree for specified path) TREE > “D:\Tree.txt” (Save a tree structure to file) TSDISCON – Disconnect a Remote Desktop Session TYPE – Display the contents of a text file TYPE “D:\file.txt” | MORE (Display output on screen, pause after each screen) TYPE “D:\file.txt” > NewFile.txt (Copy content to a new file) TYPE “D:\file.txt” >> ExistingFile.txt (Overwrite content to an existing file) TYPE nul > file.txt (Create a zero byte (empty) file) TYPEPERF – Write performance data to a log file or window VER – Display operating system version information VERIFY – Verify that your files are written correctly to the disk VERIFY (Display current verify status) VERIFY ON or VERIFY OFF (Turn file verification on or off) By default the Command Prompt has verify OFF. Windows Explorer will always copy with verify ON. VOL – Display the disk volume label and its serial number WAITFOR – Wait for or send a signal WEVTUTIL – Clear event logs, enable/disable/query logs WHERE – Search for files in a directory tree WHERE /R D:\ Tech (Find all files named tech in drive D: and all sub-folders) WHERE /R D:\ *.txt (Find all txt files)
Windows-Commands-TechForWorld.docx