Divyanshu Joshi Dos
Divyanshu Joshi Dos
Divyanshu Joshi Dos
cls Command
Clears the screen.
CLS
2.ren Command
Renames a file or files.
Note that you cannot specify a new drive or path for your
destination file.
C:\Users\Lab1\Desktop>
3.Find Command
4.cd Command
cd \winnt\profiles\username\programs\start menu
cd "\winnt\profiles\username\programs\start menu"
COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A |
/B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]
6.type command
Displays the contents of a text file or files.
TYPE [drive:][path]filename
7.assoc Command
ASSOC [.ext[=[fileType]]]
HELP [command]
9.attrib Command
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I]
[drive:][path][filename] [/S [/D] [/L]]
+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
I Not content indexed file attribute.
X No scrub file attribute.
V Integrity attribute.
[drive:][path][filename]
Specifies a file or files for attrib to process.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.
/L Work on the attributes of the Symbolic Link versus
the target of the Symbolic Link
10.systeminfo Command
SYSTEMINFO [/S system [/U username [/P [password]]]] [/FO
format] [/NH]
Description:
This tool displays operating system configuration
information for
a local or remote machine, including service pack levels.
Parameter List:
/S system Specifies the remote system to connect
to.
Examples:
SYSTEMINFO
SYSTEMINFO /?
SYSTEMINFO /S system
SYSTEMINFO /S system /U user
SYSTEMINFO /S system /U domain\user /P password /FO
TABLE
SYSTEMINFO /S system /FO LIST
SYSTEMINFO /S system /FO CSV /NH
11.format Command
Formats a disk for use with Windows.
12.ver Command
Displays the Windows version.
VER
13.time Command
Displays or sets the system time.
14.vol Command
Displays the disk volume label and serial number, if they
exist.
VOL [drive:]
15.Dir Command
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files I Not content indexed files
L Reparse Points - Prefix meaning not
/B Uses bare format (no heading information or
summary).
/C Display the thousand separator in file sizes. This is
the
default. Use /-C to disable display of separator.
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/N New long list format where filenames are on the far
right.
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest
first)
E By extension (alphabetic) D By date/time (oldest
first)
G Group directories first - Prefix to reverse order
/P Pauses after each screenful of information.
/Q Display the owner of the file.
/R Display alternate data streams of the file.
/S Displays files in specified directory and all
subdirectories.
/T Controls which time field displayed or used for
sorting
timefield C Creation
A Last Access
W Last Written
/W Uses wide list format.
/X This displays the short names generated for non-
8dot3 file
names. The format is that of /N with the short name
inserted
before the long name. If no short name is present,
blanks are
displayed in its place.
/4 Displays four-digit years
Switches may be preset in the DIRCMD environment variable.
Override
preset switches by prefixing any switch with - (hyphen)--for
example, /-W.