Ms Dos commands for basic programming., Summaries of Computer science

These are the basic commands for doing MS DOS and carrying out tasks there.

Typology: Summaries

2025/2026

Available from 05/09/2026

shreyam-maji
shreyam-maji 🇮🇳

8 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
Important Commands for Windows CMD
To get into the root of any drive letter use “\
To change directory use - cd directory_name
To make directory use - mkdir directory_name or md directory_name
To display the current directory use or change the directory - chdir and chdir
directory_name
For clearing the screen use - cls
To display or changes the file attributes use - attrib
For starting a new instance of the windows command interpreter - cmd
Comparing the contents of two or more files use - comp filenames
Set the default console foreground and background color - color ; and to change it
accordingly use the code - color -help and from the list choose the color value. Lets
suppose, code is - “color 70” it means the the first number or letter is for background
color and second for the foreground color.
To copy one or more files to any destination use - copy filename destination path
To display and set the date use - date
To display and set the time use - time
Delete one or more files use - del or erase
Delete or remove the directory use - rd or rmdir
To view the list of files and subdirectories - dir
Displays the configuration of disk partition- diskpart
To close the cmd shell - exit
To inter and exit from the full screen - alt + enter
To present the graphical structure of drive and directory- tree
Displays the content of text file - type filename
To display computer information- systeminfo
To display windows version - ver
To copy directory trees and files - xcopy
To shutdown the computer - shutdown
To restart- restart
To replace files - replace
To rename any file - ren and rename
To format any drive or disk - format drive/disk letter
To move files from one directory to another directory use - move
Creation of multi line files - copy con
Empty file - type null > filename
To display any message and create a single line file - echo
To search any text into any file - find

Partial preview of the text

Download Ms Dos commands for basic programming. and more Summaries Computer science in PDF only on Docsity!

Important Commands for Windows CMD

To get into the root of any drive letter use “\” To change directory use - cd directory_name To make directory use - mkdir directory_name or md directory_name To display the current directory use or change the directory - chdir and chdir directory_name For clearing the screen use - cls To display or changes the file attributes use - attrib For starting a new instance of the windows command interpreter - cmd Comparing the contents of two or more files use - comp filenames Set the default console foreground and background color - color ; and to change it accordingly use the code - color -help and from the list choose the color value. Lets suppose, code is - “color 70” it means the the first number or letter is for background color and second for the foreground color. To copy one or more files to any destination use - copy filename destination path To display and set the date use - date To display and set the time use - time Delete one or more files use - del or erase Delete or remove the directory use - rd or rmdir To view the list of files and subdirectories - dir Displays the configuration of disk partition- diskpart To close the cmd shell - exit To inter and exit from the full screen - alt + enter To present the graphical structure of drive and directory- tree Displays the content of text file - type filename To display computer information- systeminfo To display windows version - ver To copy directory trees and files - xcopy To shutdown the computer - shutdown To restart- restart To replace files - replace To rename any file - ren and rename To format any drive or disk - format drive/disk letter To move files from one directory to another directory use - move Creation of multi line files - copy con Empty file - type null > filename To display any message and create a single line file - echo To search any text into any file - find