Skip to Content

Some Obscure Dos Commands

1.ATTRIB:
This is used to change the file directory attributes.The attributes include hidden,read only,archive.
Go to command Prompt
type cd\
c:\>type attrib and press enter, this will show files with their attributes.
S- System File
R-Read Only
H-Hidden
A-Archive
Type attrib + <attribute> file/directory name to set up an attribute.
Type attrib - <attribute> file/directory name to remove an attribute.
eg. attrib +h a.mpg will hide that file.
Now this can be done through right clicking the folder and choosing properties and ticking hidden/readonly but the shell method is a faster one.
Generally typing help at the dos prompt will give you all the help of DOS commands(Mostly external)
2. TASKLIST(Vista only)- It is similar to ps command in linux.It will list all the current processes running in the system with the memory used by them with their process ID's.
3. TASKKILL-It is similar to Kill command in Linux.It can be used to end /terminate any process.
Eg. TASKKILL /PID 2236 will kill a process with PID 2236
4.START-Start is a useful command in DOS. It can be used to start any windows application.
Eg . Start notepad.exe or start notepad
This command will start the notepad application.
5.SHUTDOWN: Allows the users to shutdown the machine.
Shutdown /r -To restart computer(vista)
Shutdown -r(XP)
To see other DOS Utilities go to c:\windows\system32 – Type dir *.exe and press enter
This will list all the .exe files.
5.DISKPART- This will help in partitioning the disk.
6.BOOTCFG-This command is used to configure the boot.ini file
Boot.ini is an important file,One should always make a backup of it before changing it.
 
 
 

Syndicate content Syndicate content