MS-DOS commands

MS-DOS

(abbreviation for Microsoft Disk Operating System) is an operating system created by Microsoft. It was based on the Intel 8086 family of microprocessors but you can run the

MS-DOS

_prompter on every operation system, even on Vista. The reason for using

MS-DOS

commands is to get quickly into the desired program or to make changes on hard disks (copy, move, rename, delete, etc directories and files) in a very short time.

There are tons of

MS-DOS

commands most of them, unnecessarily. Here a list of common used

MS-DOS

commands:

cmd

- you get inside the prompter console (START / run / type

CMD

)

For all of these commands to get working you need all the time to get into the directory (cd dir_name) where do you want to make necessarily changes (moving, deleting, renaming, etc)

dir

- list all dir

dir /w
dir /?

- get help

REN /?

- rename get help

MKDIR /?

- make new dir help

dir /w /p

- split the entire content of the directory in multiple screens / pages

dir /p

- split the entire content of the directory in multiple pages

help

- get help

cd\

dir_name or

chdir\

dir_name – get to the desired dir

cd

windows [with space after cd] instead of

cd\

dir_name – get to the desired dir

cd..

- up one level

cd\

- get back to root of dir
C: – get into C:/ partition
A:

MD

DIR_NAME or

MKDIR

DIR_NAME to make a new directory

MD

FILE_NAME to make a new file

RD

DIR_NAME or

RMDIR

DIR_NAME – RD = Removing Directory (delete)

RD

FILE_NAME – removing file (delete)

RD /S

DIR_NAME or RD /S FILE_NAME to delete dir with files and subdir

RD C:\DIR_NAME /S

to run a program: cmd – PHOTOSHOP or any program I need…

REN

FILE_x.TXT FILE_xy.TXT or

RENAME

FILE_x.TXT FILE_xy.TXT

REN FILE_x.txt TICKS AND TRIPS IN COMPUTERS WORLD.TXT – not working

REN FILE_x.txt "TICKS AND TRIPS IN COMPUTERS WORLD.TXT"

- DONE!

ATTRIB

FILENAME.TXT to see de attribute (value) of a file

ATTRIB +R

FILENAME.TXT add R (read only) attribute

ATTRIB -R

FILENAME.TXT remove R (read only) attribute

ATTRIB -R -S -H -A

FILENAME.TXT

ATTRIB +R *.MP3 /S

add read only attribute for all mp3 files of the dir

attributes could be: A (archive), R, H (hidden), S (system file)

DIR *.TXT

- shows up all the files with txt extension

DIR A*.*

- shows up all the files that starts with “a”

DEL FILENAME.TXT OR ERASE FILENAME.TXT
DEL *.TXT – delete all the txt files
DEL *.* – delete all files in that dir

DEL

FILENAME.TXT and RN DIRNAME or RD FILENAME

ipconfig/all

- list the proprieties of your network (IP, MAC, DNS, etc)

D:\ movies COPY shrek.avi E:\

watched movies – will copy sherk.avi file from D:\movies to E:\ watched movies

D:\ movies MOVE shrek.avi E:\

watched movies – will move sherk.avi file from D:\movies to E:\ watched movies
Suppose you have 150 mp3 files in E:\ disco music and you want to moves these files in D:\ all music.
Get your prompter in E:\ disco music (cd disco music) and type

MOVE *.mp3 D:\ all music

Done!

COPY D:\all music\rhapsodic.mp3 E:\symphonic\rhapsody.mp3

- change the name during the copy process

MOVE D:\all music\rhapsodic.mp3 E:\symphonic\rhapsody.wav

- change the name and the extension of file during the moving process

MOVE D:\all music\*.mp3 E:\symphonic\*.wav

- change the extension of all files during the moving process

XCOPY D:\all music E:\recent music /s

- copy all files and directories from D:\all music to E:\recent music except the empty directories (because of /s)

XCOPY D:\all music E:\recent music /e

- copy all files and directories from D:\all music to E:\recent music including the empty directories (because of /e)

Tags : , ,

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

24 Comments

Leave Comment