Professional Documents
Culture Documents
Lec 3
Lec 3
Lec 3
Syntax: TASKLIST [/S system] [/U username] [/P password] [/M [module]] [/SVC] [/V] [/FI filter] [/FO
format] [/NH] Example: TASKLIST /FI "IMAGENAME eq notepad.exe"
TASKLIST
TASKKILL (Terminate Tasks by Process ID or Image Name)
Ends one or more tasks or processes. The example command forcefully terminates all instances of
Notepad.
• Syntax: TASKKILL [/S system] [/U username] [/FI filter] [/PID processid | /IM imagename] [/T]
[/F] Example: TASKKILL /IM notepad.exe /F
TASKKILL
ATTRIB (Change File Attributes)
This command is used to change file attributes. +R sets the file as read-only, -R removes read-only
status, +H makes the file hidden, etc.
• Syntax: ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [drive:][path][filename] [/S [/D]] Example:
ATTRIB +R C:\example.txt
ATTRIB
COPY CON
It is used to create file name
ctrl+z (enter)