Command Promt Codes - PDF - Command Line Interface - Computer File
Command Promt Codes - PDF - Command Line Interface - Computer File
https://www.scribd.com/document/66443964/Command-Promt-Codes?language_settings_changed=English 1/9
19/12/2023 21:40 Command Promt Codes | PDF | Command Line Interface | Computer File
Here are some of the codes in command promt to do the jobs simple,
https://www.scribd.com/document/66443964/Command-Promt-Codes?language_settings_changed=English 3/9
19/12/2023 21:40 Command Promt Codes | PDF | Command Line Interface | Computer File
https://www.scribd.com/document/66443964/Command-Promt-Codes?language_settings_changed=English 5/9
19/12/2023 21:40 Command Promt Codes | PDF | Command Line Interface | Computer File
To run these commands, you'll need to open a command prompt (either type cmd into the start
menu search or run box, or find the item listed in the accessories menu under the start menu)
Command Description
attrib Allows setting of hidden, read only and system file attributes.
cacls Utility to change permissions of files. Windows Vista users should use icacls inste
chkdsk Checks your hard drive for errors and optionally repairs them.
cls Clears the command prompt screen.
copy Copies files from one location to another.
del Deletes one or multiple files.
dir Shows a list of files and folders.
echo Display a message out to the command prompt display.
exit Close the command prompt or exit a script.
fc Compare two files and display the differences.
for Loop through a set and run a command for each item.
fsutil A powerful command that can be used to configure many file system properties.
ftype Display or change file associations from the command line.
getmac Display the MAC address for your network card.
goto Go to a specific line in a batch file. Also the bane of the programming world.
icacls Display or change the access control list (permissions) for files.
if U d diti l t i b t h fil
https://www.scribd.com/document/66443964/Command-Promt-Codes?language_settings_changed=English 6/9
19/12/2023 21:40 Command Promt Codes | PDF | Command Line Interface | Computer File
if Used as a conditional operator in a batch file.
ipconfig Display and change your TCP/IP configuration settings, or to flush DNS or renew
https://www.scribd.com/document/66443964/Command-Promt-Codes?language_settings_changed=English 7/9
19/12/2023 21:40 Command Promt Codes | PDF | Command Line Interface | Computer File
DHCP leases.
mkdir Make a directory. Also can be used through the md command.
more Displays output of a command one screen at a time.
move Move a file or files from one place to another.
net A set of commands for interacting with Windows network functions.
netsh Powerful utility that can adjust many network and interface settings.
netstat Displays immediate networks stats, such as open ports and routing table information.
Set the path used by Windows for finding files without having to type the full path of
path
a file.
pathping Used for network troubleshooting.
pause Used in batch files to pause the display.
ping Used for simple network troubleshooting. Not very powerful.
popd Change the directory back to the directory stored by pushd.
pushd Change the directory and store the current directory.
reg Interact with the registry from the command prompt.
rmdir Delete a folder. Can also be used with the "rd" command.
ren Change the name of files or folders.
sc Useful for configuring services.
schtasks Schedule tasks.
set Display or change environment variables.
sfc System File Checker, used to check whether system files are valid or not.
shutdown Shutdown the computer, optionally restarting if specified.
start Start a new application separate from the current session.
subst Map a folder to a drive letter.
systeminfo Show detailed info about the computer.
taskkill Used to kill processes.
tasklist Display a list of processes with their IDs, useful in conjunction with taskkill.
Used for troubleshooting network connections by tracing through the route to a
tracert
server.
tree Display the directory structure in an ascii-style tree.
type Show the contents of a text file, similar to the cat command on Linux.
xcopy Copy command that also copies subdirectories and files.
https://www.scribd.com/document/66443964/Command-Promt-Codes?language_settings_changed=English 8/9
19/12/2023 21:40 Command Promt Codes | PDF | Command Line Interface | Computer File
https://www.scribd.com/document/66443964/Command-Promt-Codes?language_settings_changed=English 9/9