MASIGNASUKAv102
6510051498749449419

Windows command Glossary

Windows command Glossary
Add Comments
2/23/2016
Her I am going to report all windows command that I have been used to make easy for me and visitors who would like to return to it at anytime and wherever.

All Windows command will be below I will try to sort it alphabetically:

A


B


C


D


Listing the files

  • dir


Listing all files and directories in the Directory that you are in

  • dir /p


Listing all files and sub-directories files

  • dir /s


 

 

Source


Dir syntax


Microsoft Windows 2000, XP, Vista, 7, and 8 syntax


Displays a list of files and subdirectories in a directory.


DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]


















































































[drive:][path][filename]Specifies drive, directory, or files to list.
/ADisplays files with specified attributes.
attributesD- 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
/BUses bare format (no heading information or summary).
/CDisplay the thousand separator in file sizes. This is the default. Use /-C to disable display of separator.
/DSame as wide but files are list sorted by column.
/LUses lowercase.
/NNew long list format where filenames are on the far right.
/OList by files in sorted order.
sortorderN 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
/PPauses after each screenful of information.
/QDisplay the owner of the file.
/RDisplay alternate data streams of the file.
/SDisplays files in specified directory and all subdirectories.
/TControl what time field displayed or used for sorting
timefieldC Creation
A Last Access
W Last Written
/WUses wide list format.
/XThis 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.
/4Displays four-digit years

Microsoft Windows 95, 98, and ME syntax


Displays a list of files and subdirectories in a directory.


DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]] [/O[[:]sortorder]] [/S] [/B] [/L] [/V]










































[drive:][path][filename]Specifies drive, directory, or files to list. (Could be enhanced file specification ormultiple filespecs.)
/PPauses after each screenful of information.
/WUses wide list format.
/Aattributes:
D Directories
R Read-only files
H Hidden files
A Files ready for archiving
S System files
- Prefix meaning not
/OList by files in sorted order, sortorder:
N By name (alphabetic)
S By size (smallest first)
E By extension (alphabetic)
D By date and time (earliest first)
G Group directories first
- Prefix to reverse order
A By Last Access Date (earliest first)
/SDisplays files in specified directory and all subdirectories.
/BUses bare format (no heading information or summary).
/LUses lowercase.
/VVerbose mode.

Switches may be preset in the DIRCMD environment variable. Override preset switches by prefixing any switch with - (hyphen)--for example, /-W.



Dir examples


dir


Lists all files and directories in the current directory. By default the dir command lists the files and directories in alphabetic order.


dir *.exe


The above command lists any file that ends with the .exe file extension. See the wildcarddefinition for further wildcard examples.


dir *.txt *.doc


The above is using multiple filespecs to list any files ending with .txt and .doc in one command.


dir /ad


List only the directories in the current directory. If you need to move into one of the directories listed use the cd command.


dir /s


Lists the files in the directory that you are in and all sub directories after that directory, if you are at root "C:\>" and type this command this will list to you every file and directory on the C: drive of the computer.


dir /p


If the directory has lots of files and you cannot read all the files as they scroll by, you can use this command and it displays all files one page at a time.


dir /w


If you don't need file information you can use this command to list only the files and directories going horizontally, taking as little as space needed.


dir /s /w /p


This would list all the files and directories in the current directory and the sub directories after that, in wide format and one page at a time.


dir /on


List the files in alphabetical order by the names of the files.


dir /o-n


List the files in reverse alphabetical order by the names of the files.


dir \ /s |find "i" |more


A nice command to list all directories on the hard drive, one screen page at a time, and see the number of files in each directory and the amount of space each occupies.


dir > myfile.txt


Takes the output of dir and re-routes it to the file myfile.txt instead of outputting it to the screen.



E


F


G


H


I


J


K


L


M


N


NBTSTAT -A IPADDRS

Used for:

  • Finding computer name using IP


O


P


Q


R


S


T


U


V


W


X


Y


Z



 

 
M