Changes

Jump to navigation Jump to search
1,020 bytes added ,  19:54, April 5, 2016
m
added some
Line 5: Line 5:     
==About Commands==
 
==About Commands==
−
These commands are applicable in [[Windows 7]] [[operating system]]s and later
+
These commands are generally applicable in [[Windows 7]] [[operating system]]s and later
    
{| class="wikitable"  
 
{| class="wikitable"  
Line 51: Line 51:  
| DEL||            Deletes one or more files.||Same as the ERASE command
 
| DEL||            Deletes one or more files.||Same as the ERASE command
 
|-  
 
|-  
−
| DIR||            Displays a list of files and subdirectories in a directory.||For a more organized layout, use TREE
+
| DIR||            Displays a list of files and sub-directories in a directory.||For a more organized layout, use TREE
 
|-  
 
|-  
 
| DISKCOMP||        Compares the contents of two floppy disks.||
 
| DISKCOMP||        Compares the contents of two floppy disks.||
Line 75: Line 75:  
| FIND||            Searches for a text string in a file or files.||For more options, try FINDSTR (below)
 
| FIND||            Searches for a text string in a file or files.||For more options, try FINDSTR (below)
 
|-  
 
|-  
−
| FINDSTR||        Searches for strings in files.||
+
| FINDSTR||        Searches for strings in files.||Useful for retrieving information saved to a file and setting it to a variable.  Unlike PRINT, the retrieved data is readily usable
 
|-  
 
|-  
 
| FOR||            Runs a specified command for each file in a set of files.||
 
| FOR||            Runs a specified command for each file in a set of files.||
Line 103: Line 103:  
| MKDIR||          Creates a directory.||Same as MD
 
| MKDIR||          Creates a directory.||Same as MD
 
|-  
 
|-  
−
| MKLINK||          Creates Symbolic Links and Hard Links||Same as MD
+
| MKLINK||          Creates Symbolic Links and Hard Links||
 
|-  
 
|-  
 
| MODE||            Configures a system device.||
 
| MODE||            Configures a system device.||
Line 119: Line 119:  
| POPD||            Restores the previous value of the current directory saved by PUSHD.||
 
| POPD||            Restores the previous value of the current directory saved by PUSHD.||
 
|-  
 
|-  
−
| PRINT||          Prints a text file (to screen).||
+
| PRINT||          Prints a text file (to screen).||Retrieved data must be piped to be used as a variable.  If anything other than simple output is required, see FINDSTR
 
|-  
 
|-  
 
| PROMPT||          Changes the Windows command prompt.||
 
| PROMPT||          Changes the Windows command prompt.||
Line 168: Line 168:  
|-  
 
|-  
 
| TIME||            Displays or sets the system time.||In older [[Windows]] versions, the /d switch would show the date
 
| TIME||            Displays or sets the system time.||In older [[Windows]] versions, the /d switch would show the date
 +
|-
 +
| TIMEOUT||        Waits a set amount of time before continuing||By default, a key may be pressed to skip the delay.  However, the /NOBREAK switch may be used to force the delay without a skip option.  Also, using -t -1 is the same as PAUSE
 
|-  
 
|-  
 
| TITLE||          Sets the window title for a CMD.EXE session.||
 
| TITLE||          Sets the window title for a CMD.EXE session.||
Line 175: Line 177:  
| TYPE||            Displays the contents of a text file.||
 
| TYPE||            Displays the contents of a text file.||
 
|-  
 
|-  
−
| VER||            Displays the Windows version.||
+
| VER||            Displays the Windows version.|| This information is also shown when Command Prompt is opened.
 
|-  
 
|-  
−
| VERIFY||          Tells Windows whether to verify that your files are written correctly to a disk.||
+
| VERIFY||          Tells Windows whether to verify that your files are written correctly to a disk.|| On most computers, the default is ''off''
 
|-  
 
|-  
 
| VOL||            Displays a disk volume label and serial number.||
 
| VOL||            Displays a disk volume label and serial number.||
Line 188: Line 190:     
For almost any command, one may enter and forward slash followed by a question mark (/?) after a base command to see additional information, generally including a description, syntax, and switches (with a description of each)
 
For almost any command, one may enter and forward slash followed by a question mark (/?) after a base command to see additional information, generally including a description, syntax, and switches (with a description of each)
 +
 +
==Variables==
 +
Variables are locations where data may be temporally stored on the [[Random-access memory|RAM]] for use within a program or in this case, batch file or CMD session.  When variable are set in CMD, the name is listed by it self (like <code>set variable=10</code>)  When referenced, however, percent signs are placed on each side (like <code>echo The value is %variable%</code>)
    
==References==
 
==References==
 
{{reflist}}
 
{{reflist}}
 +
 +
==See Also==
 +
[[Conhost.exe]]
    
==External Links==
 
==External Links==
 
[http://ss64.com/nt More complete command list on ss64.com]
 
[http://ss64.com/nt More complete command list on ss64.com]
Block, SkipCaptcha, Upload, Automoderated users, Check users, delete, edit, Moderators, move, oversight, protect, ratelimit-exempt, rollback
19,940

edits

Navigation menu