Found 62 entries
MONITOR
Control Performance Monitor logging from the command line, this removes the graphical workload of Perfmon from the server making the reported values m ...
PAUSE
Pause the execution of a batch file
Syntax
PAUSEdisplays the message "Press any key to continue . . ."
To suppress the message use PAUSE ...
PING
Test a network connection - if successful, ping returns the ip address.
Syntax
PING [options] destination_host
Options
-w timeout ...
POPD
Change directory back to the path/folder most recently stored by the PUSHD command.
POPD will also remove any temporary drive maps created by PUSHD
...
PORTQRY
Port Query - Display the status of TCP and UDP ports, troubleshoot TCP/IP connectivity and security, return LDAP base query info, SMTP, POP3, IMAP4 st ...
PRINT
Print a file or files to a local or network printer.
syntax
PRINT [/D:device] [pathname(s)]
key
device : either a local printer ...
PRNCNFG.VBS
Display, configure or rename a printer.
To display configuration information about a printer:
cscript prncnfg.vbs -g [-s RemoteComputer]
...
PRNMNGR
Display, add, remove or set default printer.
Syntax
PRNMNGR [-options] [-s server][-p printer_name][-m driver model] [-r po ...
PROMPT
Change the cmd.exe command prompt.
Syntax
PROMPT [text]
Key
text : a text string.The prompt text can be made up of normal charact ...
PUSHD
Change the current directory/folder and store the previous folder/path for use by the POPD command.
Syntax
PUSHD pathname
Key
pat ...
RASDIAL
Manage RAS/DUN connections.
Dial a RAS connection:
RASDIAL entryname [/PHONEBOOK:PhonebookFile]
[/PHONE:PhoneNumber] [usernam ...
RASPHONE
Manage Remote Access Service (RAS) connections.
This is a part of the Dial-Up Networking service, typically used to connect a PC to an Internet Servi ...
RD
Delete folder(s)
Syntax
RD pathname
RD /S pathname
RD /S /Q pathname
Key
/S : Delete all files and subfolders
...
RDISK
Create a Recovery Disk
Syntax
RDISK
RDISK /s
Key
s : Update the repair information
In Windows 2000 this command is integr ...
RECOVER
Recover a damaged file from a defective disk.
SYNTAX
RECOVER [drive:][path]filename
Recover is designed to help in the case of hardware f ...
REG
Read, Set or Delete registry keys and values
The REG command was updated in NT Resource Kit supplement 2 - the syntax for Win 2K/XP is different.
...
REGEDIT
Import, export or delete registry settings from a text (.REG) file
Syntax
Export the Registry (all HKLM plus current user)
REGEDIT /E ...
REGSVR32
Register or unregister a DLL.
Syntax
REGSVR32 [/U] [/S] [/C] [/I:[Command_Line]] DLL_Name
REGSVR32 [/U] [/S] [/C] /N /I:[Command_Li ...
REM
In a batch file
REM signifies a comment or REMARK
adding :: at the start of a line has a similar effect
For example:
@ECHO OFF
::
:: First ...
REN
Rename a file or files.
REN [drive:][path]old_filename new_filenameRENAME is a synonym for REN
You cannot specify a different drive or path ...
REPLACE
Replace or update one file with another
Syntax
REPLACE Source_PathName Destination_path [/A] [/P] [/R] [/W]
REPLACE Source_PathName D ...
RMTSHARE
Manage File and Printer shares, local or on a remote server.
Although missing from the Windows 2000 Resource kit, the NT version works fine under Wi ...
ROBOCOPY
Robust File and Folder Copy.
By default Robocopy will only copy a file if the source and destination have different time stamps or different file siz ...
ROUTE.EXE
Manipulate network routing tables. Route packets of network traffic from one subnet to another by modifying the route table.
Syntax
Display r ...
RUNDLL32
Run a DLL program. This command is available on all version of Windows from Win95 onwards, but the DLL''s and options available do vary considerably. ...
SC
Service Control - Create, Start, Stop, Query or Delete any Windows SERVICE. The command options for SC are case sensitive.
Syntax
SC [\\serv ...
SCHTASKS
Create, delete, edit, list, start or stop a scheduled task.
Works on local or remote computers.
Syntax:
SCHTASKS /Create create_options
...
SCLIST
Display NT Services
Syntax
SCLIST [options] [ComputerName]Key
-r : Display only running services
-s : Display ...
SET
Display, set, or remove CMD environment variables. Changes made with SET will remain only for the duration of the current CMD session.
Syntax
...
SETLOCAL
Set options to control the visibility of environment variables in a batch file.
Syntax
SETLOCAL
SETLOCAL EnableDelayedExpansion
...
SETX.EXE
Set environment variables permanently
SETX can be used to set Environment Variables for the machine or currently logged on user:
SETX Varia ...
Share.vbs
List or edit a file share or print share (on any computer)
Although missing from recent Resource Kits, this VBS script does still work under 2K/XP. ...
SHIFT
Change the position of command line parameters in a batch file.
Syntax
SHIFT [/n]for example:
given %1=one, %2=two, %3=three...
SHIFT
wil ...
SHORTCUT
Create a windows shortcut (.LNK file)
Syntax
SHORTCUT [options]
Key
Source options
-t target : The path and file name of the a ...
SHOWGRPS
List the NT Workgroups a user has joined.
Syntax
SHOWGRPS domain\username
SHOWGRPS usernameIf no username is specified SHOWGRPS will ...
SHUTDOWN
Shutdown the computer
Syntax
SHUTDOWN [logoff_option] [/m \\Computer] [options]
logoff_option:
/i Display the GUI (must b ...
SLEEP
Add a fixed delay to a batch file
Syntax
SLEEP time
Key
time : the number of seconds to pauseFor example:
To pause for an hour befor ...
SOON
Schedule a command to run in the near future (calls the AT command)
Syntax
SOON [\\computername] delay [/interactive] "command" SOON / ...
SORT
Sort will accept a redirected or piped file input and TYPE the file, sorted line by line.
Syntax
SORT [options]
Options /R : Reverse ...
START
Start a specified program or command in a separate window.
Syntax
START "title" [/Dpath] [options] [command] [parameters]
Key
WHAT to ...
SU
Switch User.
Syntax
SU "[cmdline]" [domain] [[Winsta\]Desktop] [options]
Key
cmdline The command to run (default =%comspec%)
...
SUBINACL
Display or modify Access Control Entries (ACEs) for file and folder Permissions, Ownership and Domain.
Access Control Lists apply only to files sto ...
SUBST
Substitute a drive letter for a network or local path.
Syntax
SUBST drive_letter: path
SUBST
SUBST drive_letter: /D ...
TASKLIST
TaskList displays all running applications and services with their Process ID (PID) This can be run on either a local or a remote computer.
(Under ...
TIME
Display or set the system time.
Syntax
TIME [new_time]
TIME
TIME /T
key
new_time : The time as HH:MM
TIME with n ...
TIMEOUT
Delay execution of a batch file.
Syntax
TIMEOUT delay
Key
delay :Delay in seconds (between -1 and 100000) to wait before continuing. ...
TITLE
Change the title displayed above the CMD window.
Syntax
TITLE [string]
Key
string : The title for the command prompt window.
The de ...
TOUCH
Change file timestamps
Syntax
TOUCH [option]... files ...
Key
/t year month day hour minute secondThis is a POSIX utility.
Use th ...
TRACERT
Trace Route - Find the IP address of any remote host. TRACERT is useful for troubleshooting large networks where several paths can be taken to arrive ...
TREE
Graphically displays the folder structure of a drive or path.
TREE [drive:][path] [/F] [/A]
/F Display the names of the files in each folde ...
TYPE
Display the contents of a text file or files.
Syntax
TYPE [drive:]pathname(s)If more than one file is specified the filenames are included ...
VER
Display the current operating system version.
Syntax
VER
Use ver to find specific operating systems like this:
@ECHO OFF
:: Win ...
VERIFY
To check that files are saved to disk correctly; the system can re-read the disk when saving and verify (compare) with the data in memory.
Syntax
...
VOL
Display the volume label of a disk.
Syntax
VOL [drive:]If they exist, VOL will display both the disk label and serial number.
...
WHERE
Locate and display files in a directory tree.
The WHERE command is roughly equivalent to the UNIX ''which'' command.
For early versions of window ...
WHOAMI
Displays the username and domain for the currently logged in user.
The whoami output is the same as the 2 environment variables %USERDOMAIN% and %U ...
WINDIFF
Compare the contents of two files or sets of files with a graphical interface.
Syntax
windiff [path1] [path2]
Key
path Individual ...
WINMSD
Microsoft Windows diagnostics
Reports: Memory use, Services, Devices, IRQ''s Ports, Environment variables,
Network (rights, transport, stats), Hard ...
WINMSDP
Windows NT diagnostics II
Reports: Memory use, Services, Devices, IRQ''s Ports, Environment variables,
Network (rights, transport, stats), Hardware ...
WMIC
Windows Management Instrumentation Command.
Read a huge range of information about local or remote computers. Also provides a way to make configurat ...
XCACLS
Display or modify Access Control Lists (ACLs) for files and folders.
Syntax
XCACLS filename [options] XCACLS filename
Key If no opti ...
XCOPY
Copy files and/or directory trees to another folder. XCOPY is similar to the COPY command except that it has additional switches to specify both the s ...