DOS Command-line Refc
-
Upload
tigassaing -
Category
Documents
-
view
229 -
download
0
Transcript of DOS Command-line Refc
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 1/158
C:\Documents and Settings\TETRA-A>arp /?
Displays and modifies t e !"-to-" ysical address translation ta#les used #yaddress resolution protocol $AR"%&
AR" -s inet'addr et 'addr (if'addr)AR" -d inet'addr (if'addr)AR" -a (inet'addr) (-* if'addr)
-a Displays current AR" entries #y interrogating t e current protocol data& !f inet'addr is specified+ t e !" and " ysical addresses for only t e specified computer are displayed& !f more t an one net,or interface uses AR"+ entries for eac AR" ta#le are displayed& -g Same as -a&
inet'addr Specifies an internet address& -* if'addr Displays t e AR" entries for t e net,or interface specified #y if'addr& -d Deletes t e ost specified #y inet'addr& inet'addr may #e ,ildcarded ,it . to delete all osts& -s Adds t e ost and associates t e !nternet address inet'addr ,it t e " ysical address et 'addr& T e " ysical address is gi en as 0 e1adecimal #ytes separated #y yp ens& T e entry is permanent& et 'addr Specifies a p ysical address& if'addr !f present+ t is specifies t e !nternet address of t e
interface , ose address translation ta#le s ould #e modified& !f not present+ t e first applica#le interface ,ill #e used&E1ample: > arp -s 234&33&53&626 77-aa-77-06-c0-78 &&&& Adds a static entry& > arp -a &&&& Displays t e arp ta#le&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>assoc /?Displays or modifies file e1tension associations
ASS9C (&e1t( (fileType)))
&e1t Specifies t e file e1tension to associate t e file type ,it fileType Specifies t e file type to associate ,it t e file e1tension
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 2/158
Type ASS9C ,it out parameters to display t e current file associations&!f ASS9C is in o ed ,it ;ust a file e1tension+ it displays t e currentfile association for t at file e1tension& Specify not ing for t e filetype and t e command ,ill delete t e association for t e file e1tension&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>at /?T e AT command sc edules commands and programs to run on a computer ata specified time and date& T e Sc edule ser ice must #e running to uset e AT command&
AT (\\computername) ( (id) (/DE<ETE) = /DE<ETE (/ ES))AT (\\computername) time (/!*TERACT! E) ( /E ER :date(+&&&) = /*E@T:date(+&&&)) command
\\computername Specifies a remote computer& Commands are sc eduled on t e local computer if t is parameter is omitted&id !s an identification num#er assigned to a sc eduled command&/delete Cancels a sc eduled command& !f id is omitted+ all t e sc eduled commands on t e computer are canceled&/yes Bsed ,it cancel all ;o#s command , en no furt er confirmation is desired&time Specifies t e time , en command is to run&/interacti e Allo,s t e ;o# to interact ,it t e des top of t e user , o is logged on at t e time t e ;o# runs&/e ery:date(+&&&) Runs t e command on eac specified day$s% of t e ,ee or mont & !f date is omitted+ t e current day of t e mont is assumed&/ne1t:date(+&&&) Runs t e specified command on t e ne1t occurrence of t e day $for e1ample+ ne1t T ursday%& !f date is omitted+ t e current day of t e mont is assumed&
command !s t e indo,s *T command+ or #atc program to #e run&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>atmadm /?Bsage: atmadm (options) , ere options are one or more of: -c <ist all connections
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 3/158
-a <ist all registered addresses -s Display Statistics
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>attri# /?Displays or c anges file attri#utes&
ATTR! ( R = -R) ( A = -A ) ( S = -S) ( F = -F) (dri e:)(pat )(filename) (/S (/D))
Sets an attri#ute& - Clears an attri#ute& R Read-only file attri#ute&
A Arc i e file attri#ute& S System file attri#ute& F Fidden file attri#ute& (dri e:)(pat )(filename) Specifies a file or files for attri# to process& /S "rocesses matc ing files in t e current folder and all su#folders& /D "rocesses folders as ,ell&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>#atc files /?G#atc G is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\Documents and Settings\TETRA-A>#atc files /?G#atc filesG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\Documents and Settings\TETRA-A>#atc 'files /?G#atc 'filesG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 4/158
C:\Documents and Settings\TETRA-A>#ootcfg /?
99TCIJ /parameter (arguments)
Description:
T is command line tool can #e used to configure+ Kuery+ c ange or delete t e #oot entry settings in t e 99T&!*! file&
"arameter <ist: /Copy La es a copy of an e1isting #oot entry (operating systems) section for , ic you can add 9S options to&
/Delete Deletes an e1isting #oot entry in t e (operating systems) section of t e 99T&!*! file& ou must specify t e entryM to delete&
/Nuery Displays t e current #oot entries and t eir settings& /Ra, Allo,s t e user to specify any s,itc options to #e added for a specified #oot entry&
/Timeout Allo,s t e user to c ange t e Timeout alue&
/Default Allo,s t e user to c ange t e Default #oot entry&
/ELS Allo,s t e user to configure t e /redirect s,itc for eadless support for a #oot entry&
/De#ug Allo,s t e user to specify t e port and #audrate for remote de#ugging for a specified #oot entry&
/Adds, Allo,s t e user to add predefined s,itc es for a specific #oot entry&
/Rms, Allo,s t e user to remo e predefined s,itc es for a specific #oot entry&
/D#g2O8P Allo,s t e user to configure 2O8P port de#ugging for a specified #oot entry&
/? Displays t is elp/usage&
E1amples: 99TCIJ /Copy /? 99TCIJ /Delete /? 99TCIJ /Nuery /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 5/158
99TCIJ /Ra, /? 99TCIJ /Timeout /? 99TCIJ /ELS /? 99TCIJ /De#ug /? 99TCIJ /Adds, /?
99TCIJ /Rms, /? 99TCIJ /D#g2O8P /? 99TCIJ /Default /? 99TCIJ /?
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>#rea /?
Sets or Clears E1tended CTR< C c ec ing on D9S systemT is is present for Compati#ility ,it D9S systems& !t as no effectunder indo,s @"&
!f Command E1tensions are ena#led+ and running on t e indo,s @" platform+ t en t e REAQ command ,ill enter a ard coded #rea pointif #eing de#ugged #y a de#ugger&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>cacls /?Displays or modifies access control lists $AC<s% of files
CAC<S filename (/T) (/E) (/C) (/J user:perm) (/R user (&&&)) (/" user:perm (&&&)) (/D user (&&&)) filename Displays AC<s& /T C anges AC<s of specified files in t e current directory and all su#directories& /E Edit AC< instead of replacing it& /C Continue on access denied errors& /J user:perm Jrant specified user access rig ts& "erm can #e: R Read rite C C ange $,rite% I Iull control /R user Re o e specified userGs access rig ts $only alid ,it /E%& /" user:perm Replace specified userGs access rig ts&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 6/158
"erm can #e: * *one R Read rite C C ange $,rite% I Iull control
/D user Deny specified user access&ildcards can #e used to specify more t at one file in a command&ou can specify more t an one user in a command&
A##re iations: C! - Container !n erit& T e ACE ,ill #e in erited #y directories& 9! - 9#;ect !n erit& T e ACE ,ill #e in erited #y files& !9 - !n erit 9nly& T e ACE does not apply to t e current file/directory&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>call /?Calls one #atc program from anot er&
CA<< (dri e:)(pat )filename (#atc -parameters)
#atc -parameters Specifies any command-line information reKuired #y t e #atc program&
!f Command E1tensions are ena#led CA<< c anges as follo,s:
CA<< command no, accepts la#els as t e target of t e CA<<& T e synta1is:
CA<< :la#el arguments
A ne, #atc file conte1t is created ,it t e specified arguments andcontrol is passed to t e statement after t e la#el specified& ou must
e1it t,ice #y reac ing t e end of t e #atc script file t,ice& T efirst time you read t e end+ control ,ill return to ;ust after t e CA<<statement& T e second time ,ill e1it t e #atc script& Type J9T9 /?for a description of t e J9T9 :E9I e1tension t at ,ill allo, you to
return from a #atc script&
!n addition+ e1pansion of #atc script argument references $ 7+ 2+etc&% a e #een c anged as follo,s:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 7/158
. in a #atc script refers to all t e arguments $e&g& 2 6 O P 3 &&&%
Su#stitution of #atc parameters $ n% as #een en anced& ou can no, use t e follo,ing optional synta1:
2 - e1pands 2 remo ing any surrounding Kuotes $ % f2 - e1pands 2 to a fully Kualified pat name d2 - e1pands 2 to a dri e letter only p2 - e1pands 2 to a pat only n2 - e1pands 2 to a file name only 12 - e1pands 2 to a file e1tension only s2 - e1panded pat contains s ort names only a2 - e1pands 2 to file attri#utes
t2 - e1pands 2 to date/time of file H2 - e1pands 2 to siHe of file "ATF:2 - searc es t e directories listed in t e "ATF en ironment aria#le and e1pands 2 to t e fully Kualified name of t e first one found& !f t e en ironment aria#le name is not defined or t e file is not found #y t e searc + t en t is modifier e1pands to t e empty string
T e modifiers can #e com#ined to get compound results:
dp2 - e1pands 2 to a dri e letter and pat only n12 - e1pands 2 to a file name and e1tension only dp "ATF:2 - searc es t e directories listed in t e "ATF en ironment aria#le for 2 and e1pands to t e dri e letter and pat of t e first one found& ftHa2 - e1pands 2 to a D!R li e output line
!n t e a#o e e1amples 2 and "ATF can #e replaced #y ot er alid alues& T e synta1 is terminated #y a alid argument num#er& T e modifiers may not #e used ,it .
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>c ange /?Gc angeG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 8/158
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>
C:\Documents and Settings\TETRA-A>c cp /?Displays or sets t e acti e code page num#er&
CFC" (nnn)
nnn Specifies a code page num#er&
Type CFC" ,it out a parameter to display t e acti e code page num#er&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>c dir /?Displays t e name of or c anges t e current directory&
CFD!R (/D) (dri e:)(pat )CFD!R (&&)CD (/D) (dri e:)(pat )CD (&&)
&& Specifies t at you ,ant to c ange to t e parent directory&
Type CD dri e: to display t e current directory in t e specified dri e&Type CD ,it out parameters to display t e current dri e and directory&
Bse t e /D s,itc to c ange current dri e in addition to c anging currentdirectory for a dri e&
!f Command E1tensions are ena#led CFD!R c anges as follo,s:
T e current directory string is con erted to use t e same case ast e on dis names& So CD C:\TEL" ,ould actually set t e currentdirectory to C:\Temp if t at is t e case on dis &
CFD!R command does not treat spaces as delimiters+ so it is possi#le toCD into a su#directory name t at contains a space ,it out surroundingt e name ,it Kuotes& Ior e1ample:
cd \,innt\profiles\username\programs\start menu
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 9/158
is t e same as:
cd \,innt\profiles\username\programs\start menu
, ic is , at you ,ould a e to type if e1tensions ,ere disa#led&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>c ds /?C ec s a dis and displays a status report&
CFQDSQ ( olume((pat )filename))) (/I) (/ ) (/R) (/@) (/!) (/C) (/<(:siHe))
olume Specifies t e dri e letter $follo,ed #y a colon%+ mount point+ or olume name& filename IAT/IATO6 only: Specifies t e files to c ec for fragmentation& /I Ii1es errors on t e dis & / 9n IAT/IATO6: Displays t e full pat and name of e ery file on t e dis & 9n *TIS: Displays cleanup messages if any& /R <ocates #ad sectors and reco ers reada#le information $implies /I%& /<:siHe *TIS only: C anges t e log file siHe to t e specified num#er of ilo#ytes& !f siHe is not specified+ displays current siHe& /@ Iorces t e olume to dismount first if necessary& All opened andles to t e olume ,ould t en #e in alid $implies /I%& /! *TIS only: "erforms a less igorous c ec of inde1 entries& /C *TIS only: S ips c ec ing of cycles ,it in t e folder structure&
T e /! or /C s,itc reduces t e amount of time reKuired to run C ds #ys ipping certain c ec s of t e olume&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 10/158
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>c ntfs /?Displays or modifies t e c ec ing of dis at #oot time&
CFQ*TIS olume (&&&)
CFQ*TIS /DCFQ*TIS /T(:time)CFQ*TIS /@ olume (&&&)CFQ*TIS /C olume (&&&)
olume Specifies t e dri e letter $follo,ed #y a colon%+ mount point+ or olume name& /D Restores t e mac ine to t e default #e a iorU all dri es are c ec ed at #oot time and c ds is run on t ose t at are dirty& /T:time C anges t e ABT9CFQ initiation countdo,n time to t e
specified amount of time in seconds& !f time is not specified+ displays t e current setting& /@ E1cludes a dri e from t e default #oot-time c ec & E1cluded dri es are not accumulated #et,een command in ocations& /C Sc edules a dri e to #e c ec ed at #oot timeU c ds ,ill run if t e dri e is dirty&
!f no s,itc es are specified+ CFQ*TIS ,ill display if t e specified dri e isdirty or sc eduled to #e c ec ed on ne1t re#oot&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>cip er /?Displays or alters t e encryption of directories (files) on *TIS partitions&
C!"FER (/E = /D) (/S:directory) (/A) (/!) (/I) (/N) (/F) (pat name (&&&))
C!"FER /Q
C!"FER /R:filename
C!"FER /B (/*)
C!"FER / :directory
C!"FER /@(:efsfile) (filename)
/A 9perates on files as ,ell as directories& T e encrypted file
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 11/158
could #ecome decrypted , en it is modified if t e parent directory is not encrypted& !t is recommended t at you encrypt t e file and t e parent directory& /D Decrypts t e specified directories& Directories ,ill #e mar ed so t at files added after,ard ,ill not #e encrypted&
/E Encrypts t e specified directories& Directories ,ill #e mar ed so t at files added after,ard ,ill #e encrypted& /I Iorces t e encryption operation on all specified o#;ects+ e en t ose , ic are already encrypted& Already-encrypted o#;ects are s ipped #y default& /F Displays files ,it t e idden or system attri#utes& T ese files are omitted #y default& /! Continues performing t e specified operation e en after errors a e occurred& y default+ C!"FER stops , en an error is encountered& /Q Creates ne, file encryption ey for t e user running C!"FER& !f
t is option is c osen+ all t e ot er options ,ill #e ignored& /* T is option only ,or s ,it /B& T is ,ill pre ent eys #eing updated& T is is used to find all t e encrypted files on t e local dri es& /N Reports only t e most essential information& /R Jenerates an EIS reco ery agent ey and certificate+ t en ,rites t em to a &"I@ file $containing certificate and pri ate ey% and a &CER file $containing only t e certificate%& An administrator may add t e contents of t e &CER to t e EIS reco ery policy to create t e reco ery agent for users+ and import t e &"I@ to reco er indi idual files& /S "erforms t e specified operation on directories in t e gi en directory and all su#directories& /B Tries to touc all t e encrypted files on local dri es& T is ,ill update userGs file encryption ey or reco ery agentGs ey to t e current ones if t ey are c anged& T is option does not ,or ,it ot er options e1cept /*& / Remo es data from a aila#le unused dis space on t e entire olume& !f t is option is c osen+ all ot er options are ignored& T e directory specified can #e any, ere in a local olume& !f it is a mount point or points to a directory in anot er olume+ t e data on t at olume ,ill #e remo ed& /@ ac up EIS certificate and eys into file filename& !f efsfile is pro ided+ t e current userGs certificate$s% used to encrypt t e file ,ill #e #ac ed up& 9t er,ise+ t e userGs current EIS certificate and eys ,ill #e #ac ed up&
directory A directory pat & filename A filename ,it out e1tensions&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 12/158
pat name Specifies a pattern+ file or directory& efsfile An encrypted file pat &
Bsed ,it out parameters+ C!"FER displays t e encryption state of t e current directory and any files it contains& ou may use multiple
directory names and ,ildcards& ou must put spaces #et,een multiple parameters&
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>cls /?Clears t e screen&
C<S
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>cmd /?Starts a ne, instance of t e indo,s @" command interpreter
CLD (/A = /B) (/N) (/D) (/E:9* = /E:9II) (/I:9* = /I:9II) (/ :9* = / :9II) ((/S) (/C = /Q) string)
/C Carries out t e command specified #y string and t en terminates/Q Carries out t e command specified #y string #ut remains/S Lodifies t e treatment of string after /C or /Q $see #elo,%/N Turns ec o off /D Disa#le e1ecution of AutoRun commands from registry $see #elo,%/A Causes t e output of internal commands to a pipe or file to #e A*S!/B Causes t e output of internal commands to a pipe or file to #e Bnicode/T:fg Sets t e foreground/#ac ground colors $see C9<9R /? for more info%/E:9* Ena#le command e1tensions $see #elo,%/E:9II Disa#le command e1tensions $see #elo,%/I:9* Ena#le file and directory name completion c aracters $see #elo,%/I:9II Disa#le file and directory name completion c aracters $see #elo,%/ :9* Ena#le delayed en ironment aria#le e1pansion using V as t e delimiter& Ior e1ample+ / :9* ,ould allo, V arV to e1pand t e aria#le ar at e1ecution time& T e ar synta1 e1pands aria#les at input time+ , ic is Kuite a different t ing , en inside of a I9R loop&/ :9II Disa#le delayed en ironment e1pansion&
*ote t at multiple commands separated #y t e command separator GWWG
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 13/158
are accepted for string if surrounded #y Kuotes& Also+ for compati#ilityreasons+ /@ is t e same as /E:9*+ / is t e same as /E:9II and /R is t esame as /C& Any ot er s,itc es are ignored&
!f /C or /Q is specified+ t en t e remainder of t e command line after
t e s,itc is processed as a command line+ , ere t e follo,ing logic isused to process Kuote $ % c aracters:
2& !f all of t e follo,ing conditions are met+ t en Kuote c aracters on t e command line are preser ed:
- no /S s,itc - e1actly t,o Kuote c aracters - no special c aracters #et,een t e t,o Kuote c aracters+ , ere special is one of: WX>$%YZ= - t ere are one or more , itespace c aracters #et,een t e
t e t,o Kuote c aracters - t e string #et,een t e t,o Kuote c aracters is t e name of an e1ecuta#le file&
6& 9t er,ise+ old #e a ior is to see if t e first c aracter is a Kuote c aracter and if so+ strip t e leading c aracter and remo e t e last Kuote c aracter on t e command line+ preser ing any te1t after t e last Kuote c aracter&
!f /D ,as *9T specified on t e command line+ t en , en CLD&E@E starts+ itloo s for t e follo,ing REJ'S[/REJ'E@"A*D'S[ registry aria#les+ and if eit er or #ot are present+ t ey are e1ecuted first&
FQE '<9CA<'LACF!*E\Soft,are\Licrosoft\Command "rocessor\AutoRun
and/or
FQE 'CBRRE*T'BSER\Soft,are\Licrosoft\Command "rocessor\AutoRun
Command E1tensions are ena#led #y default& ou may also disa#lee1tensions for a particular in ocation #y using t e /E:9II s,itc & oucan ena#le or disa#le e1tensions for all in ocations of CLD&E@E on amac ine and/or user logon session #y setting eit er or #ot of t efollo,ing REJ'D 9RD alues in t e registry using REJEDTO6&E@E:
FQE '<9CA<'LACF!*E\Soft,are\Licrosoft\Command"rocessor\Ena#leE1tensions
and/or
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 14/158
FQE 'CBRRE*T'BSER\Soft,are\Licrosoft\Command"rocessor\Ena#leE1tensions
to eit er 712 or 717& T e user specific setting ta es precedence o er t e mac ine setting& T e command line s,itc es ta e precedence o er t e
registry settings&
T e command e1tensions in ol e c anges and/or additions to t e follo,ingcommands:
DE< or ERASE C9<9R CD or CFD!R LD or LQD!R "R9L"T "BSFD
"9"D SET SET<9CA< E*D<9CA< !I I9R CA<< SF!IT J9T9 START $also includes c anges to e1ternal command in ocation% ASS9C IT "E
To get specific details+ type commandname /? to ie, t e specifics&
Delayed en ironment aria#le e1pansion is *9T ena#led #y default& oucan ena#le or disa#le delayed en ironment aria#le e1pansion for a
particular in ocation of CLD&E@E ,it t e / :9* or / :9II s,itc & oucan ena#le or disa#le completion for all in ocations of CLD&E@E on amac ine and/or user logon session #y setting eit er or #ot of t efollo,ing REJ'D 9RD alues in t e registry using REJEDTO6&E@E:
FQE '<9CA<'LACF!*E\Soft,are\Licrosoft\Command"rocessor\DelayedE1pansion
and/or
FQE 'CBRRE*T'BSER\Soft,are\Licrosoft\Command"rocessor\DelayedE1pansion
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 15/158
to eit er 712 or 717& T e user specific setting ta es precedence o er t e mac ine setting& T e command line s,itc es ta e precedence o er t eregistry settings&
!f delayed en ironment aria#le e1pansion is ena#led+ t en t e e1clamation
c aracter can #e used to su#stitute t e alue of an en ironment aria#leat e1ecution time&
Iile and Directory name completion is *9T ena#led #y default& ou canena#le or disa#le file name completion for a particular in ocation of CLD&E@E ,it t e /I:9* or /I:9II s,itc & ou can ena#le or disa#lecompletion for all in ocations of CLD&E@E on a mac ine and/or user logonsession #y setting eit er or #ot of t e follo,ing REJ'D 9RD alues int e registry using REJEDTO6&E@E:
FQE '<9CA<'LACF!*E\Soft,are\Licrosoft\Command
"rocessor\CompletionC ar FQE '<9CA<'LACF!*E\Soft,are\Licrosoft\Command"rocessor\"at CompletionC ar
and/or
FQE 'CBRRE*T'BSER\Soft,are\Licrosoft\Command "rocessor\CompletionC ar FQE 'CBRRE*T'BSER\Soft,are\Licrosoft\Command"rocessor\"at CompletionC ar
,it t e e1 alue of a control c aracter to use for a particular function $e&g& 71P is Ctrl-D and 710 is Ctrl-I%& T e user specificsettings ta e precedence o er t e mac ine settings& T e command lines,itc es ta e precedence o er t e registry settings&
!f completion is ena#led ,it t e /I:9* s,itc + t e t,o controlc aracters used are Ctrl-D for directory name completion and Ctrl-I for file name completion& To disa#le a particular completion c aracter int e registry+ use t e alue for space $7167% as it is not a alidcontrol c aracter&
Completion is in o ed , en you type eit er of t e t,o controlc aracters& T e completion function ta es t e pat string to t e leftof t e cursor appends a ,ild card c aracter to it if none is already
present and #uilds up a list of pat s t at matc & !t t en displays t efirst matc ing pat & !f no pat s matc + it ;ust #eeps and lea es t edisplay alone& T ereafter+ repeated pressing of t e same controlc aracter ,ill cycle t roug t e list of matc ing pat s& "ressing t eS ift ey ,it t e control c aracter ,ill mo e t roug t e list
#ac ,ards& !f you edit t e line in any ,ay and press t e control
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 16/158
c aracter again+ t e sa ed list of matc ing pat s is discarded and a ne,one generated& T e same occurs if you s,itc #et,een file and directoryname completion& T e only difference #et,een t e t,o control c aractersis t e file completion c aracter matc es #ot file and directory names+, ile t e directory completion c aracter only matc es directory names&
!f file completion is used on any of t e #uilt in directory commands$CD+ LD or RD% t en directory completion is assumed&
T e completion code deals correctly ,it file names t at contain spacesor ot er special c aracters #y placing Kuotes around t e matc ing pat &Also+ if you #ac up+ t en in o e completion from ,it in a line+ t ete1t to t e rig t of t e cursor at t e point completion ,as in o ed isdiscarded&
T e special c aracters t at reKuire Kuotes are: Xspace>
W$%() ]Z UVG +^C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>cmstp /?
C:\Documents and Settings\TETRA-A>color /?Sets t e default console foreground and #ac ground colors&
C9<9R (attr)
attr Specifies color attri#ute of console output
Color attri#utes are specified #y T 9 e1 digits -- t e firstcorresponds to t e #ac groundU t e second t e foreground& Eac digitcan #e any of t e follo,ing alues:
7 lac 5 Jray 2 lue 8 <ig t lue 6 Jreen A <ig t Jreen O AKua <ig t AKua P Red C <ig t Red 3 "urple D <ig t "urple 0 ello, E <ig t ello, 4 ite I rig t ite
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 17/158
!f no argument is gi en+ t is command restores t e color to , at it ,as, en CLD&E@E started& T is alue eit er comes from t e current console,indo,+ t e /T command line s,itc or from t e DefaultColor registry
alue&
T e C9<9R command sets ERR9R<E E< to 2 if an attempt is made to e1ecutet e C9<9R command ,it a foreground and #ac ground color t at are t esame&
E1ample: C9<9R fc produces lig t red on #rig t , ite
C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>C:\Documents and Settings\TETRA-A>command s ell o er ie, /?
Starts a ne, instance of t e LS-D9S command interpreter&C9LLA*D ((dri e:)pat ) (de ice) (/E:nnnnn) (/") (/C string) (/LSJ)
(dri e:)pat Specifies t e directory containing C9LLA*D&C9L file& de ice Specifies t e de ice to use for command input and output& /E:nnnnn Sets t e initial en ironment siHe to nnnnn #ytes& /" La es t e ne, command interpreter permanent $canGt e1it%& /C string Carries out t e command specified #y string+ and t en stops& /LSJ Specifies t at all error messages #e stored in memory& ou need to specify /" ,it t is s,itc &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>comp /?Compares t e contents of t,o files or sets of files&
C9L" (data2) (data6) (/D) (/A) (/<) (/* num#er) (/C) (/9II(<!*E))
data2 Specifies location and name$s% of first file$s% to compare& data6 Specifies location and name$s% of second files to compare& /D Displays differences in decimal format& /A Displays differences in ASC!! c aracters& /< Displays line num#ers for differences& /* num#er Compares only t e first specified num#er of lines in eac file& /C Disregards case of ASC!! letters , en comparing files& /9II(<!*E) Do not s ip files ,it offline attri#ute set&
To compare sets of files+ use ,ildcards in data2 and data6 parameters&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 18/158
C:\D9CBLE 2\TETRA-A>compact /?Displays or alters t e compression of files on *TIS partitions&
C9L"ACT (/C = /B) (/S(:dir)) (/A) (/!) (/I) (/N) (filename (&&&))
/C Compresses t e specified files& Directories ,ill #e mar ed so t at files added after,ard ,ill #e compressed& /B Bncompresses t e specified files& Directories ,ill #e mar ed so t at files added after,ard ,ill not #e compressed& /S "erforms t e specified operation on files in t e gi en directory and all su#directories& Default dir is t e current directory& /A Displays files ,it t e idden or system attri#utes& T ese files are omitted #y default&
/! Continues performing t e specified operation e en after errors a e occurred& y default+ C9L"ACT stops , en an error is encountered& /I Iorces t e compress operation on all specified files+ e en t ose , ic are already compressed& Already-compressed files are s ipped #y default& /N Reports only t e most essential information& filename Specifies a pattern+ file+ or directory&
Bsed ,it out parameters+ C9L"ACT displays t e compression state of t e current directory and any files it contains& ou may use multiple filenames and ,ildcards& ou must put spaces #et,een multiple parameters&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>con ert /?Con erts IAT olumes to *TIS&
C9* ERT olume /IS:*TIS (/ ) (/C tArea:filename) (/*oSecurity) (/@)
olume Specifies t e dri e letter $follo,ed #y a colon%+ mount point+ or olume name& /IS:*TIS Specifies t at t e olume is to #e con erted to *TIS& / Specifies t at Con ert s ould #e run in er#ose mode& /C tArea:filename Specifies a contiguous file in t e root directory to #e t e place older for *TIS system files&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 19/158
/*oSecurity Specifies t e con erted files and directories security settings to #e accessi#le #y e eryone& /@ Iorces t e olume to dismount first if necessary& All opened andles to t e olume ,ould t en #e in alid&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>copy /?Copies one or more files to anot er location&
C9" (/D) (/ ) (/*) (/ = /- ) (/[) (/A = / ) source (/A = / ) ( source (/A = / ) ( &&&)) (destination (/A = / ))
source Specifies t e file or files to #e copied& /A !ndicates an ASC!! te1t file& / !ndicates a #inary file& /D Allo, t e destination file to #e created decrypted destination Specifies t e directory and/or filename for t e ne, file$s%& / erifies t at ne, files are ,ritten correctly& /* Bses s ort filename+ if a aila#le+ , en copying a file ,it a non-5dotO name& / Suppresses prompting to confirm you ,ant to o er,rite an e1isting destination file& /- Causes prompting to confirm you ,ant to o er,rite an e1isting destination file& /[ Copies net,or ed files in restarta#le mode&
T e s,itc / may #e preset in t e C9" CLD en ironment aria#le&T is may #e o erridden ,it /- on t e command line& Default isto prompt on o er,rites unless C9" command is #eing e1ecuted from,it in a #atc script&
To append files+ specify a single file for destination+ #ut multiple filesfor source $using ,ildcards or file2 file6 fileO format%&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>cprofile /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 20/158
GcprofileG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Cprofile /?GCprofileG is not recogniHed as an internal or e1ternal command+
opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>cscript o er ie, /?Licrosoft $R% indo,s Script Fost ersion 3&0Copyrig t $C% Licrosoft Corporation 2880-6772& All rig ts reser ed&
!nput Error: T ere is no file e1tension in C:\D9CBLE 2\TETRA-A\o er ie, &C:\D9CBLE 2\TETRA-A>CScript o er ie, /?Licrosoft $R% indo,s Script Fost ersion 3&0Copyrig t $C% Licrosoft Corporation 2880-6772& All rig ts reser ed&
!nput Error: T ere is no file e1tension in C:\D9CBLE 2\TETRA-A\o er ie, &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>date /?Displays or sets t e date&
DATE (/T = date)
Type DATE ,it out parameters to display t e current date setting anda prompt for a ne, one& "ress E*TER to eep t e same date&
!f Command E1tensions are ena#led t e DATE command supportst e /T s,itc , ic tells t e command to ;ust output t ecurrent date+ ,it out prompting for a ne, date&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>defrag /?Bsage:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 21/158
defrag X olume> (-a) (-f) (- ) (-?) olume dri e letter or mount point $d: or d:\ ol\mountpoint% -a AnalyHe only -f Iorce defragmentation e en if free space is lo, - er#ose output
-? Display t is elp te1t
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>del /?Deletes one or more files&
DE< (/") (/I) (/S) (/N) (/A((:)attri#utes)) names
ERASE (/") (/I) (/S) (/N) (/A((:)attri#utes)) names names Specifies a list of one or more files or directories& ildcards may #e used to delete multiple files& !f a directory is specified+ all files ,it in t e directory ,ill #e deleted&
/" "rompts for confirmation #efore deleting eac file& /I Iorce deleting of read-only files& /S Delete specified files from all su#directories& /N Nuiet mode+ do not as if o to delete on glo#al ,ildcard /A Selects files to delete #ased on attri#utes attri#utes R Read-only files S System files F Fidden files A Iiles ready for arc i ing - "refi1 meaning not
!f Command E1tensions are ena#led DE< and ERASE c ange as follo,s:
T e display semantics of t e /S s,itc are re ersed in t at it s o,syou only t e files t at are deleted+ not t e ones it could not find&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dir /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 22/158
Displays a list of files and su#directories in a directory&
D!R (dri e:)(pat )(filename) (/A((:)attri#utes)) (/ ) (/C) (/D) (/<) (/*) (/9((:)sortorder)) (/") (/N) (/S) (/T((:)timefield)) (/ ) (/@) (/P)
(dri e:)(pat )(filename) Specifies dri e+ directory+ and/or files to list&
/A Displays files ,it specified attri#utes& attri#utes D Directories R Read-only files F Fidden files A Iiles ready for arc i ing S System files - "refi1 meaning not / Bses #are format $no eading information or summary%& /C Display t e t ousand separator in file siHes& T is is t e default& Bse /-C to disa#le display of separator& /D Same as ,ide #ut files are list sorted #y column&
/< Bses lo,ercase& /* *e, long list format , ere filenames are on t e far rig t& /9 <ist #y files in sorted order& sortorder * y name $alp a#etic% S y siHe $smallest first% E y e1tension $alp a#etic% D y date/time $oldest first% J Jroup directories first - "refi1 to re erse order /" "auses after eac screenful of information& /N Display t e o,ner of t e file& /S Displays files in specified directory and all su#directories& /T Controls , ic time field displayed or used for sorting timefield C Creation A <ast Access <ast ritten / Bses ,ide list format& /@ T is displays t e s ort names generated for non-5dotO file names& T e format is t at of /* ,it t e s ort name inserted #efore t e long name& !f no s ort name is present+ #lan s are displayed in its place& /P Displays four-digit years
S,itc es may #e preset in t e D!RCLD en ironment aria#le& 9 erride preset s,itc es #y prefi1ing any s,itc ,it - $ yp en%--for e1ample+ /- &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dis comp /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 23/158
Compares t e contents of t,o floppy dis s&
D!SQC9L" (dri e2: (dri e6:))
C:\D9CBLE 2\TETRA-A> olume Specifies t e dri e letter $follo,ed #y a colon%+ mount point+ or olume name& /IS:*TIS Specifies t at t e olume is to #e con erted to *TIS& / Specifies t at Con ert s ould #e run in er#ose mode& /C tArea:filename Specifies a contiguous file in t e root directory to #e t e place older for *TIS system files& /*oSecurity Specifies t e con erted files and directories security settings to #e accessi#le #y e eryone& /@ Iorces t e olume to dismount first if necessary&
All opened andles to t e olume ,ould t en #e in alid&C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dis copy /?Copies t e contents of one floppy dis to anot er&
D!SQC9" (dri e2: (dri e6:)) (/ )
/ erifies t at t e information is copied correctly&
T e t,o floppy dis s must #e t e same type&ou may specify t e same dri e for dri e2 and dri e6&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dis part /?
Licrosoft Dis "art ersion 3&2&O303
Copyrig t $C% 2888-677O Licrosoft Corporation&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 24/158
9n computer: TETRA-067-A
Licrosoft Dis "art synta1: dis part (/s Xscript>) (/?)
/s Xscript> - Bse a Dis "art script& /? - S o, t is elp screen&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dos ey /?Edits command lines+ recalls indo,s @" commands+ and creates macros&
D9SQE (/RE!*STA<<) (/<!STS![E siHe) (/LACR9S(:A<< = :e1ename)) (/F!ST9R ) (/!*SERT = /9 ERSTR!QE) (/E@E*ALE e1ename)
(/LACR9I!<E filename) (macroname (te1t))
/RE!*STA<< !nstalls a ne, copy of Dos ey& /<!STS![E siHe Sets siHe of command istory #uffer& /LACR9S Displays all Dos ey macros& /LACR9S:A<< Displays all Dos ey macros for all e1ecuta#les , ic a e Dos ey macros& /LACR9S:e1ename Displays all Dos ey macros for t e gi en e1ecuta#le& /F!ST9R Displays all commands stored in memory& /!*SERT Specifies t at ne, te1t you type is inserted in old te1t& /9 ERSTR!QE Specifies t at ne, te1t o er,rites old te1t& /E@E*ALE e1ename Specifies t e e1ecuta#le& /LACR9I!<E filename Specifies a file of macros to install& macroname Specifies a name for a macro you create& te1t Specifies commands you ,ant to record&
B" and D9 * ARR9 S recall commandsU ESC clears command lineU I4 displayscommand istoryU A<T I4 clears command istoryU I5 searc es command
istoryU I8 selects a command #y num#erU A<T I27 clears macro definitions&
T e follo,ing are some special codes in Dos ey macro definitions:T Command separator& Allo,s multiple commands in a macro&2- 8 atc parameters& EKui alent to 2- 8 in #atc programs&. Sym#ol replaced #y e eryt ing follo,ing macro name on command line&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 25/158
C:\D9CBLE 2\TETRA-A>dri erKuery /?
DR! ERNBER (/S system (/B username (/" (pass,ord)))) (/I9 format) (/*F) (/S!) (/ )Description:
Ena#les an administrator to enumerate and display t e list of installed de ice dri ers as ,ell as t eir properties&
"arameter <ist: /S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specify t e "ass,ord for t e gi en user conte1t& "rompts for input if omitted&
/I9 format Specifies t e type of output to display& alid alues to #e passed ,it t e s,itc are TA <E + <!ST + CS &
/*F Specifies t at t e Column Feader s ould not #e displayed in t e screen output& alid for TA <E and CS format only&
/ Displays detailed information& *ot alid for signed dri ers&
/S! "ro ides information a#out signed dri ers&
/? Displays t is Felp/Bsage&
E1amples: DR! ERNBER DR! ERNBER /I9 CS /S! DR! ERNBER /*F DR! ERNBER /S ipaddress /B user / DR! ERNBER /S system /B domain\user /" pass,ord /I9 <!ST
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 26/158
C:\D9CBLE 2\TETRA-A> names& T e format is t at of /* ,it t e s ortname inserted #efore t e long name& !f no s ort name is present+ #lan s are displayed in its place& /P Displays four-digit years
S,itc es may #e preset in t e D!RCLD en ironment aria#le& 9 erride preset s,itc es #y prefi1ing any s,itc ,it - $ yp en%--for e1ample+ /- &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dis copy /?Copies t e contents of one floppy dis to anot er&
D!SQC9" (dri e2: (dri e6:)) (/ )
/ erifies t at t e information is copied correctly&
T e t,o floppy dis s must #e t e same type&ou may specify t e same dri e for dri e2 and dri e6&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dis part /?
Licrosoft Dis "art ersion 3&2&O303
Copyrig t $C% 2888-677O Licrosoft Corporation&9n computer: TETRA-067-A
Licrosoft Dis "art synta1: dis part (/s Xscript>) (/?)
/s Xscript> - Bse a Dis "art script& /? - S o, t is elp screen&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dos ey /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 27/158
Edits command lines+ recalls indo,s @" commands+ and creates macros&
D9SQE (/RE!*STA<<) (/<!STS![E siHe) (/LACR9S(:A<< = :e1ename)) (/F!ST9R ) (/!*SERT = /9 ERSTR!QE) (/E@E*ALE e1ename)(/LACR9I!<E filename)
(macroname (te1t))
/RE!*STA<< !nstalls a ne, copy of Dos ey& /<!STS![E siHe Sets siHe of command istory #uffer& /LACR9S Displays all Dos ey macros& /LACR9S:A<< Displays all Dos ey macros for all e1ecuta#les , ic a e Dos ey macros& /LACR9S:e1ename Displays all Dos ey macros for t e gi en e1ecuta#le& /F!ST9R Displays all commands stored in memory& /!*SERT Specifies t at ne, te1t you type is inserted in old te1t& /9 ERSTR!QE Specifies t at ne, te1t o er,rites old te1t&
/E@E*ALE e1ename Specifies t e e1ecuta#le& /LACR9I!<E filename Specifies a file of macros to install& macroname Specifies a name for a macro you create& te1t Specifies commands you ,ant to record&
B" and D9 * ARR9 S recall commandsU ESC clears command lineU I4 displayscommand istoryU A<T I4 clears command istoryU I5 searc es command
istoryU I8 selects a command #y num#erU A<T I27 clears macro definitions&
T e follo,ing are some special codes in Dos ey macro definitions:T Command separator& Allo,s multiple commands in a macro&2- 8 atc parameters& EKui alent to 2- 8 in #atc programs&. Sym#ol replaced #y e eryt ing follo,ing macro name on command line&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>dri erKuery /?
DR! ERNBER (/S system (/B username (/" (pass,ord)))) (/I9 format) (/*F) (/S!) (/ )Description: Ena#les an administrator to enumerate and display t e list of installed de ice dri ers as ,ell as t eir properties&
"arameter <ist: /S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 28/158
under , ic t e command s ould e1ecute&
/" (pass,ord) Specify t e "ass,ord for t e gi en user conte1t& "rompts for input if omitted&
/I9 format Specifies t e type of output to display& alid alues to #e passed ,it t e s,itc are TA <E + <!ST + CS &
/*F Specifies t at t e Column Feader s ould not #e displayed in t e screen output& alid for TA <E and CS format only&
/ Displays detailed information& *ot alid for signed dri ers&
/S! "ro ides information a#out signed dri ers&
/? Displays t is Felp/Bsage&
E1amples: DR! ERNBER DR! ERNBER /I9 CS /S! DR! ERNBER /*F DR! ERNBER /S ipaddress /B user / DR! ERNBER /S system /B domain\user /" pass,ord /I9 <!ST
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ec o /?Displays messages+ or turns command-ec oing on or off&
ECF9 (9* = 9II) ECF9 (message)
Type ECF9 ,it out parameters to display t e current ec o setting&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 29/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>endlocal /?Ends localiHation of en ironment c anges in a #atc file&En ironment c anges made after E*D<9CA< as #een issued are
not local to t e #atc fileU t e pre ious settings are notrestored on termination of t e #atc file&
E*D<9CA<
!f Command E1tensions are ena#led E*D<9CA< c anges as follo,s:
!f t e corresponding SET<9CA< ena#le or disa#led command e1tensionsusing t e ne, E*A <EE@TE*S!9*S or D!SA <EE@TE*S!9*S options+ t enafter t e E*D<9CA<+ t e ena#led/disa#led state of command e1tensions,ill #e restored to , at it ,as prior to t e matc ing SET<9CA<
command e1ecution&C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e entcreate /?
E E*TCREATE (/S system (/B username (/" (pass,ord)))) /!D e entid (/< logname) (/S9 srcname) /T type /D description
Description: T is command line tool ena#les an administrator to create a custom e ent !D and message in a specified e ent log&
"arameter <ist: /S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en user conte1t& "rompts for input if omitted&
/< logname Specifies t e e ent log to create an e ent in&
/T type Specifies t e type of e ent to create&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 30/158
alid types: ERR9R+ AR*!*J+ !*I9RLAT!9*&
/S9 source Specifies t e source to use for t e e ent& A alid source can #e any string and s ould represent t e application or
component t at is generating t e e ent&
/!D id Specifies t e e ent !D for t e e ent& A alid custom message !D is in t e range of 2 - 2777&
/D description Specifies t e description to #e set for t e ne,ly creating e ent&
/? Displays t is elp/usage&
E1amples: E E*TCREATE /T ERR9R /!D 277 /< A""<!CAT!9* /D Create an e ent in application log
E E*TCREATE /T ERR9R /!D 888 /< A""<!CAT!9* /S9 in ord /D ne, source in,ord in application log
E E*TCREATE /S system /T ERR9R /!D 277 /< A""<!CAT!9* /D Remote system ,it out user credentials
E E*TCREATE /S system /B user /" pass,ord /!D 277 /T ERR9R /< A""<!CAT!9* /D Remote mac ine ,it user credentials
E E*TCREATE /S system /B domain\user /!D 277 /T AR*!*J /S9 Ly atc Iile&cmd /D Laintenance script user logon failed
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e entKuery /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e enttriggers /?
E E*TTR!JJERS /parameter (arguments)
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 31/158
Description: T is command-line tool ena#les an administrator to display and configure E ent Triggers on local or remote system&
"arameter <ist:
/Create Create a ne, E ent Trigger t at ,ill monitor and act upon t e occurrence of *T <og E ents of gi en criteria&
/Delete Deletes an E ent Trigger #y its trigger !D&
/Nuery Displays t e E ent Trigger properties and settings&
/? Displays t is elp/usage&
E1amples: E E*TTR!JJERS /Create /?
E E*TTR!JJERS /Delete /? E E*TTR!JJERS /Nuery /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e ntcmd /?Ge ntcmdG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e1it /?Nuits t e CLD&E@E program $command interpreter% or t e current #atcscript&
E@!T (/ ) (e1itCode)
/ specifies to e1it t e current #atc script instead of CLD&E@E& !f e1ecuted from outside a #atc script+ it ,ill Kuit CLD&E@E
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 32/158
e1itCode specifies a numeric num#er& if / is specified+ sets ERR9R<E E< t at num#er& !f Kuitting CLD&E@E+ sets t e process e1it code ,it t at num#er&
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e1pand /?Licrosoft $R% Iile E1pansion Btility ersion 3&2&6077&7Copyrig t $C% Licrosoft Corp 2887-2888& All rig ts reser ed&
E1pands one or more compressed files&
E@"A*D (-r) Source DestinationE@"A*D -r Source (Destination)E@"A*D -D Source&ca# (-I:Iiles)E@"A*D Source&ca# -I:Iiles Destination
-r Rename e1panded files& -D Display list of files in source& Source Source file specification& ildcards may #e used& -I:Iiles *ame of files to e1pand from a &CA & Destination Destination file = pat specification& Destination may #e a directory& !f Source is multiple files and -r is not specified+ Destination must #e a directory&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 33/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ec o /?Displays messages+ or turns command-ec oing on or off&
ECF9 (9* = 9II) ECF9 (message)
Type ECF9 ,it out parameters to display t e current ec o setting&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>endlocal /?Ends localiHation of en ironment c anges in a #atc file&En ironment c anges made after E*D<9CA< as #een issued arenot local to t e #atc fileU t e pre ious settings are notrestored on termination of t e #atc file&
E*D<9CA<
!f Command E1tensions are ena#led E*D<9CA< c anges as follo,s:
!f t e corresponding SET<9CA< ena#le or disa#led command e1tensionsusing t e ne, E*A <EE@TE*S!9*S or D!SA <EE@TE*S!9*S options+ t enafter t e E*D<9CA<+ t e ena#led/disa#led state of command e1tensions,ill #e restored to , at it ,as prior to t e matc ing SET<9CA<command e1ecution&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 34/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e entcreate /?
E E*TCREATE (/S system (/B username (/" (pass,ord)))) /!D e entid (/< logname) (/S9 srcname) /T type /D description
Description: T is command line tool ena#les an administrator to create a custom e ent !D and message in a specified e ent log&
"arameter <ist:
/S system Specifies t e remote system to connect to& /B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en user conte1t& "rompts for input if omitted&
/< logname Specifies t e e ent log to create an e ent in&
/T type Specifies t e type of e ent to create& alid types: ERR9R+ AR*!*J+ !*I9RLAT!9*&
/S9 source Specifies t e source to use for t e e ent& A alid source can #e any string and s ould represent t e application or component t at is generating t e e ent&
/!D id Specifies t e e ent !D for t e e ent& A alid custom message !D is in t e range of 2 - 2777&
/D description Specifies t e description to #e set for t e ne,ly creating e ent&
/? Displays t is elp/usage&
E1amples:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 35/158
E E*TCREATE /T ERR9R /!D 277 /< A""<!CAT!9* /D Create an e ent in application log
E E*TCREATE /T ERR9R /!D 888 /< A""<!CAT!9* /S9 in ord /D ne, source in,ord in application log
E E*TCREATE /S system /T ERR9R /!D 277 /< A""<!CAT!9* /D Remote system ,it out user credentials
E E*TCREATE /S system /B user /" pass,ord /!D 277 /T ERR9R /< A""<!CAT!9* /D Remote mac ine ,it user credentials
E E*TCREATE /S system /B domain\user /!D 277 /T AR*!*J /S9 Ly atc Iile&cmd /D Laintenance script user logon failed
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e entKuery /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e enttriggers /?
E E*TTR!JJERS /parameter (arguments)
Description: T is command-line tool ena#les an administrator to display and configure E ent Triggers on local or remote system&
"arameter <ist: /Create Create a ne, E ent Trigger t at ,ill monitor and act upon t e occurrence of *T <og E ents of gi en criteria&
/Delete Deletes an E ent Trigger #y its trigger !D&
/Nuery Displays t e E ent Trigger properties and settings&
/? Displays t is elp/usage&
E1amples: E E*TTR!JJERS /Create /? E E*TTR!JJERS /Delete /? E E*TTR!JJERS /Nuery /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 36/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e ntcmd /?Ge ntcmdG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e1it /?Nuits t e CLD&E@E program $command interpreter% or t e current #atcscript&
E@!T (/ ) (e1itCode)
/ specifies to e1it t e current #atc script instead of CLD&E@E& !f e1ecuted from outside a #atc script+ it ,ill Kuit CLD&E@E
e1itCode specifies a numeric num#er& if / is specified+ sets ERR9R<E E< t at num#er& !f Kuitting CLD&E@E+ sets t e process e1it code ,it t at num#er&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e1pand /?Licrosoft $R% Iile E1pansion Btility ersion 3&2&6077&7Copyrig t $C% Licrosoft Corp 2887-2888& All rig ts reser ed&
E1pands one or more compressed files&
E@"A*D (-r) Source DestinationE@"A*D -r Source (Destination)
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 37/158
E@"A*D -D Source&ca# (-I:Iiles)E@"A*D Source&ca# -I:Iiles Destination
-r Rename e1panded files& -D Display list of files in source&
Source Source file specification& ildcards may #e used& -I:Iiles *ame of files to e1pand from a &CA & Destination Destination file = pat specification& Destination may #e a directory& !f Source is multiple files and -r is not specified+ Destination must #e a directory&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>fc /?Compares t,o files or sets of files and displays t e differences #et,eent em
IC (/A) (/C) (/<) (/< n) (/*) (/9II(<!*E)) (/T) (/B) (/ ) (/nnnn) (dri e2:)(pat 2)filename2 (dri e6:)(pat 6)filename6IC / (dri e2:)(pat 2)filename2 (dri e6:)(pat 6)filename6
/A Displays only first and last lines for eac set of differences& / "erforms a #inary comparison& /C Disregards t e case of letters& /< Compares files as ASC!! te1t& /< n Sets t e ma1imum consecuti e mismatc es to t e specified num#er of lines& /* Displays t e line num#ers on an ASC!! comparison& /9II(<!*E) Do not s ip files ,it offline attri#ute set& /T Does not e1pand ta#s to spaces& /B Compare files as B*!C9DE te1t files& / Compresses , ite space $ta#s and spaces% for comparison& /nnnn Specifies t e num#er of consecuti e lines t at must matc after a mismatc & (dri e2:)(pat 2)filename2 Specifies t e first file or set of files to compare& (dri e6:)(pat 6)filename6 Specifies t e second file or set of files to compare&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 38/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>filter commands /?
GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Iilter /?GIilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Iilter commands /?GIilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>Iilter'commands /?GIilter'commandsG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>filter command /?GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>filter commands /?GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>filter commands ?GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A> find /?Searc es for a te1t string in a file or files&
I!*D (/ ) (/C) (/*) (/!) (/9II(<!*E)) string ((dri e:)(pat )filename( &&&))
/ Displays all lines *9T containing t e specified string& /C Displays only t e count of lines containing t e string& /* Displays line num#ers ,it t e displayed lines& /! !gnores t e case of c aracters , en searc ing for t e string& /9II(<!*E) Do not s ip files ,it offline attri#ute set& string Specifies t e te1t string to find&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 39/158
(dri e:)(pat )filename Specifies a file or files to searc &
!f a pat is not specified+ I!*D searc es t e te1t typed at t e promptor piped from anot er command&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e entcreate /?
E E*TCREATE (/S system (/B username (/" (pass,ord)))) /!D e entid (/< logname) (/S9 srcname) /T type /D description
Description: T is command line tool ena#les an administrator to create a custom e ent !D and message in a specified e ent log&
"arameter <ist: /S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en user conte1t& "rompts for input if omitted&
/< logname Specifies t e e ent log to create an e ent in&
/T type Specifies t e type of e ent to create& alid types: ERR9R+ AR*!*J+ !*I9RLAT!9*&
/S9 source Specifies t e source to use for t e e ent& A alid source can #e any string and s ould represent t e application or component t at is generating t e e ent&
/!D id Specifies t e e ent !D for t e e ent& A alid custom message !D is in t e range of 2 - 2777&
/D description Specifies t e description to #e set for t e ne,ly creating e ent&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 40/158
/? Displays t is elp/usage&
E1amples:
E E*TCREATE /T ERR9R /!D 277 /< A""<!CAT!9* /D Create an e ent in application log
E E*TCREATE /T ERR9R /!D 888 /< A""<!CAT!9* /S9 in ord /D ne, source in,ord in application log
E E*TCREATE /S system /T ERR9R /!D 277 /< A""<!CAT!9* /D Remote system ,it out user credentials
E E*TCREATE /S system /B user /" pass,ord /!D 277 /T ERR9R /< A""<!CAT!9* /D Remote mac ine ,it user credentials
E E*TCREATE /S system /B domain\user /!D 277 /T AR*!*J /S9 Ly atc Iile&cmd /D Laintenance script user logon failed
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e entKuery /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e enttriggers /?
E E*TTR!JJERS /parameter (arguments)
Description: T is command-line tool ena#les an administrator to display and configure E ent Triggers on local or remote system&
"arameter <ist: /Create Create a ne, E ent Trigger t at ,ill monitor and act upon t e occurrence of *T <og E ents of gi en criteria&
/Delete Deletes an E ent Trigger #y its trigger !D&
/Nuery Displays t e E ent Trigger properties and settings&
/? Displays t is elp/usage&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 41/158
E1amples: E E*TTR!JJERS /Create /? E E*TTR!JJERS /Delete /? E E*TTR!JJERS /Nuery /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e ntcmd /?Ge ntcmdG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e1it /?Nuits t e CLD&E@E program $command interpreter% or t e current #atcscript&
E@!T (/ ) (e1itCode)
/ specifies to e1it t e current #atc script instead of CLD&E@E& !f e1ecuted from outside a #atc script+ it ,ill Kuit CLD&E@E
e1itCode specifies a numeric num#er& if / is specified+ sets ERR9R<E E< t at num#er& !f Kuitting CLD&E@E+ sets t e process e1it code ,it t at num#er&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>e1pand /?Licrosoft $R% Iile E1pansion Btility ersion 3&2&6077&7Copyrig t $C% Licrosoft Corp 2887-2888& All rig ts reser ed&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 42/158
E1pands one or more compressed files&
E@"A*D (-r) Source DestinationE@"A*D -r Source (Destination)
E@"A*D -D Source&ca# (-I:Iiles)E@"A*D Source&ca# -I:Iiles Destination
-r Rename e1panded files& -D Display list of files in source& Source Source file specification& ildcards may #e used& -I:Iiles *ame of files to e1pand from a &CA & Destination Destination file = pat specification& Destination may #e a directory& !f Source is multiple files and -r is not specified+ Destination must #e a directory&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>fc /?Compares t,o files or sets of files and displays t e differences #et,eent em
IC (/A) (/C) (/<) (/< n) (/*) (/9II(<!*E)) (/T) (/B) (/ ) (/nnnn) (dri e2:)(pat 2)filename2 (dri e6:)(pat 6)filename6IC / (dri e2:)(pat 2)filename2 (dri e6:)(pat 6)filename6
/A Displays only first and last lines for eac set of differences& / "erforms a #inary comparison& /C Disregards t e case of letters& /< Compares files as ASC!! te1t& /< n Sets t e ma1imum consecuti e mismatc es to t e specified num#er of lines& /* Displays t e line num#ers on an ASC!! comparison& /9II(<!*E) Do not s ip files ,it offline attri#ute set& /T Does not e1pand ta#s to spaces& /B Compare files as B*!C9DE te1t files& / Compresses , ite space $ta#s and spaces% for comparison& /nnnn Specifies t e num#er of consecuti e lines t at must matc after a mismatc & (dri e2:)(pat 2)filename2
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 43/158
Specifies t e first file or set of files to compare& (dri e6:)(pat 6)filename6 Specifies t e second file or set of files to compare&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>filter commands /?GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Iilter /?GIilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Iilter commands /?GIilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>Iilter'commands /?GIilter'commandsG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>filter command /?GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>filter commands /?GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>filter commands ?GfilterG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A> find /?Searc es for a te1t string in a file or files&
I!*D (/ ) (/C) (/*) (/!) (/9II(<!*E)) string ((dri e:)(pat )filename( &&&))
/ Displays all lines *9T containing t e specified string&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 44/158
/C Displays only t e count of lines containing t e string& /* Displays line num#ers ,it t e displayed lines& /! !gnores t e case of c aracters , en searc ing for t e string& /9II(<!*E) Do not s ip files ,it offline attri#ute set& string Specifies t e te1t string to find&
(dri e:)(pat )filename Specifies a file or files to searc &
!f a pat is not specified+ I!*D searc es t e te1t typed at t e promptor piped from anot er command&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>findstr /?Searc es for strings in files&
I!*DSTR (/ ) (/E) (/<) (/R) (/S) (/!) (/@) (/ ) (/*) (/L) (/9) (/") (/I:file) (/C:string) (/J:file) (/D:dir list) (/A:color attri#utes) (/9II(<!*E)) strings ((dri e:)(pat )filename( &&&))
/ Latc es pattern if at t e #eginning of a line& /E Latc es pattern if at t e end of a line& /< Bses searc strings literally& /R Bses searc strings as regular e1pressions& /S Searc es for matc ing files in t e current directory and all su#directories& /! Specifies t at t e searc is not to #e case-sensiti e& /@ "rints lines t at matc e1actly& / "rints only lines t at do not contain a matc & /* "rints t e line num#er #efore eac line t at matc es& /L "rints only t e filename if a file contains a matc & /9 "rints c aracter offset #efore eac matc ing line& /" S ip files ,it non-printa#le c aracters& /9II(<!*E) Do not s ip files ,it offline attri#ute set& /A:attr Specifies color attri#ute ,it t,o e1 digits& See color /? /I:file Reads file list from t e specified file$/ stands for console%& /C:string Bses specified string as a literal searc string& /J:file Jets searc strings from t e specified file$/ stands for console%& /D:dir Searc a semicolon delimited list of directories strings Te1t to #e searc ed for& (dri e:)(pat )filename Specifies a file or files to searc &
Bse spaces to separate multiple searc strings unless t e argument is prefi1ed,it /C& Ior e1ample+ GI!*DSTR ello t ere 1&yG searc es for ello or
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 45/158
t ere in file 1&y& GI!*DSTR /C: ello t ere 1&yG searc es for ello t ere in file 1&y&
Regular e1pression Kuic reference: & ildcard: any c aracter
. Repeat: Hero or more occurances of pre ious c aracter or class Z <ine position: #eginning of line <ine position: end of line (class) C aracter class: any one c aracter in set (Zclass) !n erse class: any one c aracter not in set (1-y) Range: any c aracters ,it in t e specified range \1 Escape: literal use of metac aracter 1 \X1yH ord position: #eginning of ,ord 1yH\> ord position: end of ,ord
Ior full information on I!*DSTR regular e1pressions refer to t e online Command
Reference&C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>finger /?
(TETRA-067-A)> Iinger: connect::Connection refused
C:\D9CBLE 2\TETRA-A>finger /?
(TETRA-067-A)Iinger: connect::Connection refused
FingerDisplays information a#out a user or users on a specified remote computer $typically acomputer running B*!@% t at is running t e Iinger ser ice or daemon& T e remote
computer specifies t e format and output of t e user information display& Bsed ,it out parameters+ finger displays elp&
Syntax
finger (-l) (User ) (@host ) (...)
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 46/158
Parameters-l
Displays user information in long list format&User
Specifies t e user a#out , ic you ,ant information& !f you omit t e User parameter+ finger displays information a#out all users on t e specified computer&
@host Specifies t e remote computer running t e Iinger ser ice , ere you are loo ingfor user information& ou can specify a computer name or !" address&
/? Displays elp at t e command prompt&
Remarks• Lultiple User @host parameters can #e specified&• ou must prefi1 finger parameters ,it a yp en $ -% rat er t an a slas $/%&• T is command is a aila#le only if t e Internet Protocol (TCP/IP) protocol is
installed as a component in t e properties of a net,or adapter in *et,orConnections &
• indo,s 6777 and indo,s @" do not pro ide a finger ser ice&
Examples
To display information for user2 on t e computer usersµsoft&com+ type t e follo,ingcommand:
finger [email protected]
To display information for all users on t e computer usersµsoft&com+ type t efollo,ing command:
finger @users.microsoft.com
Formatting legend Format Meaning
Italic !nformation t at t e user must supply
BoldElements t at t e user must type e1actlyas s o,n
Ellipsis $&&&% "arameter t at can #e repeated se eraltimes in a command line
et,een #rac ets $()% 9ptional itemset,een #races $ ]%U c oices separated #y pipe
$=%& E1ample: e en=odd]Set of c oices from , ic t e user mustc oose only one
Courier font Code or program output
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 47/158
Related Topics
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>flattemp /?GflattempG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Ilattemp /?GIlattempG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>for /?Runs a specified command for eac file in a set of files&
I9R aria#le !* $set% D9 command (command-parameters)
aria#le Specifies a single letter replacea#le parameter& $set% Specifies a set of one or more files& ildcards may #e used& command Specifies t e command to carry out for eac file& command-parameters Specifies parameters or s,itc es for t e specified command&
To use t e I9R command in a #atc program+ specify aria#le insteadof aria#le& aria#le names are case sensiti e+ so i is differentfrom !&
!f Command E1tensions are ena#led+ t e follo,ing additionalforms of t e I9R command are supported:
I9R /D aria#le !* $set% D9 command (command-parameters)
!f set contains ,ildcards+ t en specifies to matc against directory names instead of file names&
I9R /R ((dri e:)pat ) aria#le !* $set% D9 command (command-parameters)
al s t e directory tree rooted at (dri e:)pat + e1ecuting t e I9R statement in eac directory of t e tree& !f no directory specification is specified after /R t en t e current directory is assumed& !f set is ;ust a single period $&% c aracter t en it ,ill ;ust enumerate t e directory tree&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 48/158
I9R /< aria#le !* $start+step+end% D9 command (command-parameters)
T e set is a seKuence of num#ers from start to end+ #y step amount& So $2+2+3% ,ould generate t e seKuence 2 6 O P 3 and $3+-2+2% ,ould
generate t e seKuence $3 P O 6 2%
I9R /I ( options ) aria#le !* $file-set% D9 command (command-parameters)I9R /I ( options ) aria#le !* $ string % D9 command (command-parameters)I9R /I ( options ) aria#le !* $GcommandG% D9 command (command-parameters)
or+ if use#ac K option present:
I9R /I ( options ) aria#le !* $file-set% D9 command (command-parameters)I9R /I ( options ) aria#le !* $GstringG% D9 command (command-parameters)I9R /I ( options ) aria#le !* $^command^% D9 command (command-parameters)
filenameset is one or more file names& Eac file is opened+ read and processed #efore going on to t e ne1t file in filenameset& "rocessing consists of reading in t e file+ #rea ing it up into indi idual lines of te1t and t en parsing eac line into Hero or more to ens& T e #ody of t e for loop is t en called ,it t e aria#le alue$s% set to t e found to en string$s%& y default+ /I passes t e first #lan separated to en from eac line of eac file& lan lines are s ipped& ou can o erride t e default parsing #e a ior #y specifying t e optional options parameter& T is is a Kuoted string , ic contains one or more ey,ords to specify different parsing options& T e ey,ords are:
eol c - specifies an end of line comment c aracter $;ust one% s ip n - specifies t e num#er of lines to s ip at t e #eginning of t e file& delims 111 - specifies a delimiter set& T is replaces t e default delimiter set of space and ta#& to ens 1+y+m-n - specifies , ic to ens from eac line are to #e passed to t e for #ody for eac iteration& T is ,ill cause additional aria#le names to #e allocated& T e m-n form is a range+ specifying t e mt t roug t e nt to ens& !f t e last c aracter in t e to ens string is an asteris + t en an additional aria#le is allocated and recei es t e remaining te1t on t e line after t e last to en parsed& use#ac K - specifies t at t e ne, semantics are in force+ , ere a #ac Kuoted string is e1ecuted as a
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 49/158
command and a single Kuoted string is a literal string command and allo,s t e use of dou#le Kuotes to Kuote file names in filenameset&
Some e1amples mig t elp:
I9R /I eol U to ens 6+O. delims + i in $myfile&t1t% do Yec o i ;
,ould parse eac line in myfile&t1t+ ignoring lines t at #egin ,it a semicolon+ passing t e 6nd and Ord to en from eac line to t e for #ody+ ,it to ens delimited #y commas and/or spaces& *otice t e for #ody statements reference i to get t e 6nd to en+ ; to get t e Ord to en+ and to get all remaining to ens after t e Ord& Ior file names t at contain spaces+ you need to Kuote t e filenames ,it dou#le Kuotes& !n order to use dou#le Kuotes in t is manner+ you also
need to use t e use#ac K option+ ot er,ise t e dou#le Kuotes ,ill #e interpreted as defining a literal string to parse&
i is e1plicitly declared in t e for statement and t e ; and are implicitly declared ia t e to ens option& ou can specify up to 60 to ens ia t e to ens line+ pro ided it does not cause an attempt to declare a aria#le ig er t an t e letter GHG or G[G& Remem#er+ I9R aria#les are single-letter+ case sensiti e+ glo#al+ and you canGt a e more t an 36 total acti e at any one time&
ou can also use t e I9R /I parsing logic on an immediate string+ #y ma ing t e filenameset #et,een t e parent esis a Kuoted string+ using single Kuote c aracters& !t ,ill #e treated as a single line of input from a file and parsed&
Iinally+ you can use t e I9R /I command to parse t e output of a command& ou do t is #y ma ing t e filenameset #et,een t e parent esis a #ac Kuoted string& !t ,ill #e treated as a command line+ , ic is passed to a c ild CLD&E@E and t e output is captured into memory and parsed as if it ,as a file& So t e follo,ing e1ample:
I9R /I use#ac K delims i !* $^set^% D9 Yec o i
,ould enumerate t e en ironment aria#le names in t e current en ironment&
!n addition+ su#stitution of I9R aria#le references as #een en anced&ou can no, use t e follo,ing optional synta1:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 50/158
! - e1pands ! remo ing any surrounding Kuotes $ % f! - e1pands ! to a fully Kualified pat name d! - e1pands ! to a dri e letter only p! - e1pands ! to a pat only n! - e1pands ! to a file name only
1! - e1pands ! to a file e1tension only s! - e1panded pat contains s ort names only a! - e1pands ! to file attri#utes of file t! - e1pands ! to date/time of file H! - e1pands ! to siHe of file "ATF:! - searc es t e directories listed in t e "ATF en ironment aria#le and e1pands ! to t e fully Kualified name of t e first one found& !f t e en ironment aria#le name is not defined or t e file is not found #y t e searc + t en t is modifier e1pands to t e
empty stringT e modifiers can #e com#ined to get compound results:
dp! - e1pands ! to a dri e letter and pat only n1! - e1pands ! to a file name and e1tension only fs! - e1pands ! to a full pat name ,it s ort names only dp "ATF:! - searc es t e directories listed in t e "ATF en ironment aria#le for ! and e1pands to t e dri e letter and pat of t e first one found& ftHa! - e1pands ! to a D!R li e output line
!n t e a#o e e1amples ! and "ATF can #e replaced #y ot er alidalues& T e synta1 is terminated #y a alid I9R aria#le name&
"ic ing upper case aria#le names li e ! ma es it more reada#le anda oids confusion ,it t e modifiers+ , ic are not case sensiti e&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>format /?Iormats a dis for use ,it indo,s @"&
I9RLAT olume (/IS:file-system) (/ :la#el) (/N) (/A:siHe) (/C) (/@)I9RLAT olume (/ :la#el) (/N) (/I:siHe)I9RLAT olume (/ :la#el) (/N) (/T:trac s /*:sectors)
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 51/158
I9RLAT olume (/ :la#el) (/N)I9RLAT olume (/N)
olume Specifies t e dri e letter $follo,ed #y a colon%+ mount point+ or olume name&
/IS:filesystem Specifies t e type of t e file system $IAT+ IATO6+ or *TIS%& / :la#el Specifies t e olume la#el& /N "erforms a Kuic format& /C *TIS only: Iiles created on t e ne, olume ,ill #e compressed #y default& /@ Iorces t e olume to dismount first if necessary& All opened andles to t e olume ,ould no longer #e alid& /A:siHe 9 errides t e default allocation unit siHe& Default settings are strongly recommended for general use& *TIS supports 326+ 276P+ 67P5+ P780+ 5286+ 20Q+ O6Q+ 0PQ& IAT supports 326+ 276P+ 67P5+ P780+ 5286+ 20Q+ O6Q+ 0PQ+
$265Q+ 630Q for sector siHe > 326 #ytes%& IATO6 supports 326+ 276P+ 67P5+ P780+ 5286+ 20Q+ O6Q+ 0PQ+ $265Q+ 630Q for sector siHe > 326 #ytes%&
*ote t at t e IAT and IATO6 files systems impose t e follo,ing restrictions on t e num#er of clusters on a olume:
IAT: *um#er of clusters X 03360 IATO6: 03360 X *um#er of clusters X P244825
Iormat ,ill immediately stop processing if it decides t at t e a#o e reKuirements cannot #e met using t e specified cluster siHe&
*TIS compression is not supported for allocation unit siHes a#o e P780&
/I:siHe Specifies t e siHe of t e floppy dis to format $2&PP% /T:trac s Specifies t e num#er of trac s per dis side& /*:sectors Specifies t e num#er of sectors per trac &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>fsutil /?/? is an in alid parameter&---- Commands Supported ----
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 52/158
#e a ior Control file system #e a ior dirty Lanage olume dirty #itfile Iile specific commandsfsinfo Iile system information
ardlin Fardlin managemento#;ectid 9#;ect !D managementKuota Nuota managementreparsepoint Reparse point managementsparse Sparse file controlusn BS* management
olume olume management
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ftp /?Bn no,n ost /?&ftp>ftp> ?Commands may #e a##re iated& Commands are:
V delete literal prompt send? de#ug ls put statusappend dir mdelete p,d traceascii disconnect mdir Kuit type
#ell get mget Kuote user #inary glo# m dir rec er#ose #ye as mls remote elpcd elp mput renameclose lcd open rmdir ftp> disconnect
*ot connected&ftp> ls
*ot connected&ftp> close
*ot connected&ftp> #ye
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 53/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ftp su#commandsBn no,n ost su#commands&ftp> #ye
Ft su!commandsIor more information+ clic a command:
• Itp: V• Itp: ?• Itp: append• Itp: ascii• Itp: #ell• Itp: #inary• Itp: ye• Itp: cd• Itp: close• Itp: de#ug• Itp: delete• Itp: dir• Itp: disconnect• Itp: get•
Itp: glo#• Itp: as• Itp: elp• Itp: lcd• Itp: literal• Itp: ls• Itp: mdelete• Itp: mdir• Itp: mget• Itp: m dir• Itp: mls• Itp: mput• Itp: open• Itp: prompt• Itp: put• Itp: p,d• Itp: Kuit• Itp: Kuote• Itp: rec
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 54/158
• Itp: remote elp• Itp: rename• Itp: rmdir• Itp: send• Itp: status•
Itp: trace• Itp: type• Itp: user• Itp: er#ose
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ftp su#commands /?
Transfers files to and from a computer running an IT" ser er ser ice
$sometimes called a daemon%& Itp can #e used interacti ely&
IT" (- ) (-d) (-i) (-n) (-g) (-s:filename) (-a) (-,:,indo,siHe) (-A) ( ost)
- Suppresses display of remote ser er responses& -n Suppresses auto-login upon initial connection& -i Turns off interacti e prompting during multiple file transfers& -d Ena#les de#ugging& -g Disa#les filename glo##ing $see J<9 command%& -s:filename Specifies a te1t file containing IT" commandsU t e
commands ,ill automatically run after IT" starts& -a Bse any local interface , en #inding data connection& -A login as anonymous& -,:#uffersiHe 9 errides t e default transfer #uffer siHe of P780& ost Specifies t e ost name or !" address of t e remote ost to connect to&
*otes: - mget and mput commands ta e y/n/K for yes/no/Kuit& - Bse Control-C to a#ort commands&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ftype /?Displays or modifies file types used in file e1tension associations
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 55/158
IT "E (fileType( (openCommandString)))
fileType Specifies t e file type to e1amine or c ange openCommandString Specifies t e open command to use , en launc ing files of t is type&
Type IT "E ,it out parameters to display t e current file types t ata e open command strings defined& IT "E is in o ed ,it ;ust a file
type+ it displays t e current open command string for t at file type&Specify not ing for t e open command string and t e IT "E command ,illdelete t e open command string for t e file type& it in an opencommand string 7 or 2 are su#stituted ,it t e file name #einglaunc ed t roug t e assocation& . gets all t e parameters and 6gets t e 2st parameter+ O t e second+ etc& n gets all t e remaining
parameters starting ,it t e nt parameter+ , ere n may #e #et,een 6 and 8+inclusi e& Ior e1ample:
ASS9C &pl "erlScript IT "E "erlScript perl&e1e 2 .
,ould allo, you to in o e a "erl script as follo,s:
script&pl 2 6 O
!f you ,ant to eliminate t e need to type t e e1tensions+ t en do t efollo,ing:
set "ATFE@T &plU "ATFE@T
and t e script could #e in o ed as follo,s:
script 2 6 O
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>getmac /?
JETLAC (/S system (/B username (/" (pass,ord)))) (/I9 format) (/*F) (/ )
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 56/158
Description: T is command line tool ena#les an administrator to display t e LAC address for one or more net,or adapters on a system&
"arameter <ist:
/S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en user conte1t& "rompts for input if omitted&
/I9 format Specifies t e format in , ic t e output is to #e displayed& alid alues: TA <E + <!ST + CS &
/ Specifies t at t e detailed information s ould #e displayed in t e output&
/*F Specifies t at t e Column Feader s ould not #e displayed in t e output& alid only for TA <E and CS formats&
/? Displays t is elp/usage&
E1amples: JETLAC /I9 cs JETLAC /S system /*F / JETLAC /S system /B user JETLAC /S system /B domain\user /" pass,ord /I9 list / JETLAC /S system /B domain\user /" pass,ord /I9 ta#le /*F
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>goto /?Directs cmd&e1e to a la#eled line in a #atc program&
J9T9 la#el
la#el Specifies a te1t string used in t e #atc program as a la#el&
ou type a la#el on a line #y itself+ #eginning ,it a colon&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 57/158
!f Command E1tensions are ena#led J9T9 c anges as follo,s:
J9T9 command no, accepts a target la#el of :E9I , ic transfers controlto t e end of t e current #atc script file& T is is an easy ,ay to
e1it a #atc script file ,it out defining a la#el& Type CA<< /? for adescription of e1tensions to t e CA<< command t at ma e t is featureuseful&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>gpresult /?
J"RESB<T (/S system (/B username (/" (pass,ord)))) (/SC9"E scope)
(/BSER targetusername) (/ = /[)Description: T is command line tool displays t e Resultant Set of "olicy $RSo"% for a target user and computer&
"arameter <ist: /S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en user conte1t& "rompts for input if omitted&
/BSER (domain\)user Specifies t e user name for , ic t e RS9" data is to #e displayed&
/SC9"E scope Specifies , et er t e user or t e computer settings needs to #e displayed& alid alues: BSER + C9L"BTER &
/ Specifies t at t e er#ose information is to #e displayed& er#ose information details specific settings t at a e #een applied ,it a precedence of 2&
/[ Specifies t at t e super- er#ose
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 58/158
information is to #e displayed& Super- er#ose information details specific settings t at a e #een applied ,it a precedence of 2 and ig er& T is allo,s you to see if a setting ,as set in
multiple places& See t e Jroup "olicy online elp for more information&
/? Displays t is elp/usage&
*9TE: !f you run J"RESB<T ,it out parameters+ it returns t e RSo" data for t e current logged-on user on t e computer it ,as run on&
E1amples: J"RESB<T J"RESB<T /BSER targetusername /
J"RESB<T /S system /BSER targetusername /SC9"E C9L"BTER /[ J"RESB<T /S system /B username /" pass,ord /SC9"E BSER /
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>gpupdate /?Licrosoftr indo,sr 9perating System Jroup "olicy Refres Btility 3&2c Licrosoft Corporation& All rig ts reser ed&
Description: Refres es Jroup "olicies settings&
Synta1: J"Bpdate (/Target: Computer = Bser]) (/Iorce) (/ ait:X alue>) (/<ogoff) (/ oot) (/Sync)
"arameters:
alue Description/Target: Computer = Bser] Specifies t at only Bser or only Computer policy settings are refres ed& y default+ #ot Bser and Computer policy settings are refres ed&
/Iorce Reapplies all policy settings& y default+ only policy settings t at a e c anged are applied&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 59/158
/ ait: alue] Sets t e num#er of seconds to ,ait for policy processing to finis & T e default is 077 seconds& T e alue G7G means not to ,ait& T e alue G-2G means to ,ait indefinitely&
en t e time limit is e1ceeded+ t e command prompt returns+ #ut policy processing continues&
/<ogoff Causes a logoff after t e Jroup "olicy settings a e #een refres ed& T is is reKuired for t ose Jroup "olicy client-side e1tensions t at do not process policy on a #ac ground refres cycle #ut do process policy , en a user logs on& E1amples include user-targeted Soft,are !nstallation and Iolder Redirection&
T is option as no effect if t ere are no e1tensions called t at reKuire a logoff&
/ oot Causes a re#oot after t e Jroup "olicy settings are refres ed& T is is reKuired for t ose Jroup "olicy client-side e1tensions t at do not process policy on a #ac ground refres cycle #ut do process policy at computer startup& E1amples include computer-targeted Soft,are !nstallation& T is option as no effect if t ere are no e1tensions called t at reKuire a re#oot&
/Sync Causes t e ne1t foreground policy application to #e done sync ronously& Ioreground policy applications occur at computer #oot and user logon& ou can specify t is for t e user+ computer or #ot using t e /Target parameter& T e /Iorce and / ait parameters ,ill #e ignored if specified&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>grafta#l /?Ena#le indo,s to display an e1tended c aracter set in grap ics mode&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 60/158
JRAITA < (111)JRAITA < /STATBS
111 Specifies a code page num#er& /STATBS Displays t e current code page selected for use ,it JRAITA <&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> elp /?"ro ides elp information for indo,s @" commands&
FE<" (command)
command - displays elp information on t at command&C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> elpctr /?G elpctrG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> elpctr /?G elpctrG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> ostname /?set ostname: Bse t e *et,or Control "anel Applet to set ostname&
ostname -s is not supported&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> elp ostnameT is command is not supported #y t e elp utility& Try 1 /? &
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 61/158
C:\D9CBLE 2\TETRA-A> ostname /?set ostname: Bse t e *et,or Control "anel Applet to set ostname&
ostname -s is not supported&
"ostnameDisplays t e ost name portion of t e full computer name of t e computer&
Syntax
#ostname
Parameters/?
Displays elp at t e command prompt&
Remarks• Ior more information a#out specifying t e full computer name+ see Related
Topics&• T is command is a aila#le only if t e Internet Protocol (TCP/IP) protocol is
installed as a component in t e properties of a net,or adapter in *et,orConnections &
Examples
To display t e name of t e computer+ type:
#ostname
Formatting legend Format Meaning
Italic !nformation t at t e user must supply
BoldElements t at t e user must type e1actlyas s o,n
Ellipsis $&&&%"arameter t at can #e repeated se eraltimes in a command line
et,een #rac ets $()% 9ptional itemset,een #races $ ]%U c oices separated #y pipe
$=%& E1ample: e en=odd]Set of c oices from , ic t e user mustc oose only one
Courier font Code or program output
Related Topics
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 62/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>if /?"erforms conditional processing in #atc programs&
!I (*9T) ERR9R<E E< num#er command!I (*9T) string2 string6 command!I (*9T) E@!ST filename command
*9T Specifies t at indo,s @" s ould carry out
t e command only if t e condition is false& ERR9R<E E< num#er Specifies a true condition if t e last program run returned an e1it code eKual to or greater t an t e num#er specified&
string2 string6 Specifies a true condition if t e specified te1t strings matc &
E@!ST filename Specifies a true condition if t e specified filename e1ists&
command Specifies t e command to carry out if t e condition is met& Command can #e follo,ed #y E<SE command , ic ,ill e1ecute t e command after t e E<SE ey,ord if t e specified condition is IA<SE
T e E<SE clause must occur on t e same line as t e command after t e !I& Ior e1ample:
!I E@!ST filename& $ del filename& % E<SE $ ec o filename& missing& %
T e follo,ing ,ould *9T ,or #ecause t e del command needs to #e terminated #y a ne,line:
!I E@!ST filename& del filename& E<SE ec o filename& missing
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 63/158
*or ,ould t e follo,ing ,or + since t e E<SE command must #e on t e same lineas t e end of t e !I command:
!I E@!ST filename& del filename&
E<SE ec o filename& missing
T e follo,ing ,ould ,or if you ,ant it all on one line:
!I E@!ST filename& $del filename&% E<SE ec o filename& missing
!f Command E1tensions are ena#led !I c anges as follo,s:
!I (/!) string2 compare-op string6 command !I CLDE@T ERS!9* num#er command !I DEI!*ED aria#le command
, ere compare-op may #e one of:
ENB - eKual *EN - not eKual <SS - less t an <EN - less t an or eKual JTR - greater t an JEN - greater t an or eKual
and t e /! s,itc + if specified+ says to do case insensiti e stringcompares& T e /! s,itc can also #e used on t e string2 string6 formof !I& T ese comparisons are generic+ in t at if #ot string2 andstring6 are #ot comprised of all numeric digits+ t en t e strings arecon erted to num#ers and a numeric comparison is performed&
T e CLDE@T ERS!9* conditional ,or s ;ust li e ERR9R<E E<+ e1cept it iscomparing against an internal ersion num#er associated ,it t e CommandE1tensions& T e first ersion is 2& !t ,ill #e incremented #y one , ensignificant en ancements are added to t e Command E1tensions&CLDE@T ERS!9* conditional is ne er true , en Command E1tensions aredisa#led&
T e DEI!*ED conditional ,or s ;ust li e E@!STS e1cept it ta es anen ironment aria#le name and returns true if t e en ironment aria#leis defined&
ERR9R<E E< ,ill e1pand into a string representation of t e current alue of ERR9R<E E<+ pro ided t at t ere is not alreadyan en ironment aria#le ,it t e name ERR9R<E E<+ in , ic case you
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 64/158
,ill get its alue instead& After running a program+ t e follo,ingillustrates ERR9R<E E< use:
goto ans,er ERR9R<E E< :ans,er7
ec o "rogram ad return code 7 :ans,er2 ec o "rogram ad return code 2
ou can also using t e numerical comparisons a#o e:
!I ERR9R<E E< <EN 2 goto o ay
CLDCLD<!*E ,ill e1pand into t e original command line passed toCLD&E@E prior to any processing #y CLD&E@E+ pro ided t at t ere is notalready an en ironment aria#le ,it t e name CLDCLD<!*E+ in , ic case
you ,ill get its alue instead&CLDE@T ERS!9* ,ill e1pand into a string representation of t e
current alue of CLDE@T ERS!9*+ pro ided t at t ere is not alreadyan en ironment aria#le ,it t e name CLDE@T ERS!9*+ in , ic case you,ill get its alue instead&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ipconfig /?
BSAJE: ipconfig (/? = /all = /rene, (adapter) = /release (adapter) = /flus dns = /displaydns = /registerdns = /s o,classid adapter = /setclassid adapter (classid) )
, ere adapter Connection name $,ildcard c aracters . and ? allo,ed+ see e1amples%
9ptions: /? Display t is elp message /all Display full configuration information&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 65/158
/release Release t e !" address for t e specified adapter& /rene, Rene, t e !" address for t e specified adapter& /flus dns "urges t e D*S Resol er cac e& /registerdns Refres es all DFC" leases and re-registers D*S names /displaydns Display t e contents of t e D*S Resol er Cac e&
/s o,classid Displays all t e d cp class !Ds allo,ed for adapter& /setclassid Lodifies t e d cp class id&
T e default is to display only t e !" address+ su#net mas anddefault gate,ay for eac adapter #ound to TC"/!"&
Ior Release and Rene,+ if no adapter name is specified+ t en t e !" addressleases for all adapters #ound to TC"/!" ,ill #e released or rene,ed&
Ior Setclassid+ if no Class!d is specified+ t en t e Class!d is remo ed&
E1amples: > ipconfig &&& S o, information& > ipconfig /all &&& S o, detailed information > ipconfig /rene, &&& rene, all adapters > ipconfig /rene, E<. &&& rene, any connection t at as its name starting ,it E< > ipconfig /release .Con. &&& release all matc ing connections+ eg& <ocal Area Connection 2 or <ocal Area Connection 6
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ipseccmd /?GipseccmdG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>ipsec /?GipsecG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ipseccmd /?GipseccmdG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 66/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ip1route /?
* <in !"@ Routing and Source Routing Control "rogram 6&77Bna#le to open transport \De ice\*,ln !p1&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>irftp /?GirftpG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>la#el /?Creates+ c anges+ or deletes t e olume la#el of a dis &
<A E< (dri e:)(la#el)<A E< (/L") ( olume) (la#el)
dri e: Specifies t e dri e letter of a dri e& la#el Specifies t e la#el of t e olume& /L" Specifies t at t e olume s ould #e treated as a mount point or olume name& olume Specifies t e dri e letter $follo,ed #y a colon%+ mount point+ or olume name& !f olume name is specified+ t e /L" flag is unnecessary&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>lodctr /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 67/158
<9DCTR Bpdates "erformance Lonitor counter names and e1plain te1t for an e1tensi#le counter
Bsage: <9DCTR (\\computername) filename computername is t e name of t e remote computer& <ocal mac ine is used if computername is not specified& filename is t e name of t e initialiHation file t at contains t e counter name definitions and e1plain te1t for an e1tensi#le counter D<<&
<9DCTR /S:XIile*ame> sa e current perf registry strings and info to XIile*ame>
<9DCTR /R:XIile*ame> restore perf registry strings and info using XIile*ame>
*ote: any arguments ,it spaces in t e names must #e enclosed ,it inDou#le Nuotation mar s&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>logman /?
Licrosoft r <ogman&e1e $3&2&6077&6257%c Licrosoft Corporation& All rig ts reser ed&
<ogman manages t e "erformance <ogs and Alerts ser ice for creating andmanaging E ent Trace Session logs and "erformance logs&
Bsage:logman ER Xcollection'name> (options)
er#s: create Xcounter=trace> Create a ne, collection& start Start an e1isting collection and set t e #egin time to manual& stop Stop an e1isting collection and set t e end time to manual& delete Delete an e1isting collection& Kuery (collection'name=pro iders) Nuery collection properties& !f no
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 68/158
collection'name is gi en all collections are listed& T e ey,ord Gpro idersG ,ill list all of t e registered E ent Trace pro iders& update Bpdate an e1isting collection properties&
"arameters: Xcollection'name> *ame of t e collection&
9ptions: -? Displays conte1t sensiti e elp& -s Xcomputer> "erform t e command on specified remote system& -config Xfilename> Settings file containing command options& -# XL/d/yyyy :mm:ss(AL="L)> egin t e collection at specified time& -e XL/d/yyyy :mm:ss(AL="L)> End t e collection at specified time& -m X(start) (stop)> C ange to manual start or stop rat er t an a
sc eduled #egin or end time& -(-)r Repeat t e collection daily at t e specified #egin and end times& -o Xpat =dsnVlog> "at of t e output log file or t e DS* and log set name in a SN< data#ase& -f X#in=#incirc=cs =ts =sKl> Specifies t e log format for t e collection& -(-)a Append to an e1isting log file& -(-) (nnnnnn=mmdd mm) Attac file ersioning information to t e end of t e log name& -(-)rc Xfilename> Run t e command specified eac time t e log is closed& -(-)ma1 X alue> La1imum log file siHe in L or num#er of records for SN< logs& -(-)cnf ((( :)mm:)ss) Create a ne, file , en t e specified time as elapsed or , en t e ma1 siHe is e1ceeded& -c Xpat (pat &&&)> "erformance counters to collect& -cf Xfilename> Iile listing performance counters to collect+ one per line& -si X(( :)mm:)ss> Sample inter al for performance counter collections& -ln Xlogger'name> <ogger name for E ent Trace Sessions& -(-)rt Run t e E ent Trace Session in real-time mode& -p Xpro ider (flags (le el))> A single E ent Trace pro ider to ena#le& -pf Xfilename> Iile listing multiple E ent Trace pro iders to ena#le& -(-)ul Run t e E ent Trace Session in user mode& -#s X alue> E ent Trace Session #uffer siHe in #& -ft X(( :)mm:)ss> E ent Trace Session flus timer& -n# Xmin ma1> *um#er of E ent Trace Session #uffers&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 69/158
-fd Ilus es all t e acti e #uffers of an e1isting E ent Trace Session to dis & -(-)u (user (pass,ord)) Bser to Run As& Entering a . for t e pass,ord produces a prompt for t e pass,ord& T e pass,ord is not displayed , en you type it at
t e pass,ord prompt& -rf X(( :)mm:)ss> Run t e collection for specified period of time& -y Ans,er yes to all Kuestions ,it out prompting& -ets Send commands to E ent Trace Sessions directly ,it out sa ing or sc eduling& -mode Xtrace'mode (trace'mode &&&)> E ent Trace Session logger mode&
*ote: ere (-) is listed+ an e1tra - negates t e option&
Ior e1ample --r turns off t e -r option&E1amples: logman create counter perf'log -c \"rocessor$'Total%\ "rocessor Time logman create trace trace'log -n# 20 630 -#s 0P -o c:\logfile logman start perf'log logman update perf'log -si 27 -f cs - mmdd mm logman update trace'log -p indo,s Qernel Trace $dis +net%
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>lpK //
Displays t e state of a remote lpd Kueue&
Bsage: lpK -Sser er -"printer (-l)
9ptions: -S ser er *ame or ipaddress of t e ost pro iding lpd ser ice -" printer *ame of t e print Kueue -l er#ose output
C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 70/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>lpK /?
Displays t e state of a remote lpd Kueue&
Bsage: lpK -Sser er -"printer (-l)
9ptions: -S ser er *ame or ipaddress of t e ost pro iding lpd ser ice -" printer *ame of t e print Kueue -l er#ose output
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>lpr /Sends a print ;o# to a net,or printer
Bsage: lpr -S ser er -" printer (-C class) (-_ ;o#) (-o option) (-1) (-d) filename
9ptions: -S ser er *ame or ipaddress of t e ost pro iding lpd ser ice -" printer *ame of t e print Kueue -C class _o# classification for use on t e #urst page -_ ;o# _o# name to print on t e #urst page -o option !ndicates type of t e file $#y default assumes a te1t file% Bse -o l for #inary $e&g& postscript% files -1 Compati#ility ,it Sun9S P&2&1 and prior -d Send data file first
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>macfile /?GmacfileG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 71/158
C:\D9CBLE 2\TETRA-A>macfile /?GmacfileG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>m dir /?Creates a directory&
LQD!R (dri e:)patLD (dri e:)pat
!f Command E1tensions are ena#led LQD!R c anges as follo,s:
LQD!R creates any intermediate directories in t e pat + if needed&
Ior e1ample+ assume \a does not e1ist t en: m dir \a\#\c\d
is t e same as:
m dir \a c dir \a m dir # c dir # m dir c c dir c m dir d
, ic is , at you ,ould a e to type if e1tensions ,ere disa#led&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>mmc /?
C:\D9CBLE 2\TETRA-A>mmc //
C:\D9CBLE 2\TETRA-A>a ,indo, appear after in o ing t is command
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 72/158
GaG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>mode /?Configures system de ices&
Serial port: L9DE C9Lm(:) ( ABD #) ("AR!T p) (DATA d) (ST9" s) (to on=off) (1on on=off) (odsr on=off) (octs on=off) (dtr on=off= s) (rts on=off= s=tg) (idsr on=off)
De ice Status: L9DE (de ice) (/STATBS)
Redirect printing: L9DE <"Tn(:) C9Lm(:)
Select code page: L9DE C9*(:) C" SE<ECT yyy
Code page status: L9DE C9*(:) C" (/STATBS)
Display mode: L9DE C9*(:) (C9<S c) (<!*ES n)
Typematic rate: L9DE C9*(:) (RATE r DE<A d)
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>more /?Displays output one screen at a time&
L9RE (/E (/C) (/") (/S) (/Tn) ( n)) X (dri e:)(pat )filenamecommand-name = L9RE (/E (/C) (/") (/S) (/Tn) ( n))L9RE /E (/C) (/") (/S) (/Tn) ( n) (files)
(dri e:)(pat )filename Specifies a file to display one screen at a time&
command-name Specifies a command , ose output ,ill #e displayed&
/E Ena#le e1tended features /C Clear screen #efore displaying page /" E1pand IormIeed c aracters
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 73/158
/S SKueeHe multiple #lan lines into a single line /Tn E1pand ta#s to n spaces $default 5%
S,itc es can #e present in t e L9RE en ironment aria#le&
n Start displaying t e first file at line n
files <ist of files to #e displayed& Iiles in t e list are separated #y #lan s&
!f e1tended features are ena#led+ t e follo,ing commands are accepted at t e -- Lore -- prompt:
" n Display ne1t n lines S n S ip ne1t n lines
I Display ne1t file N Nuit S o, line num#er ? S o, elp line Xspace> Display ne1t page Xret> Display ne1t line
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>mount ol /?Creates+ deletes+ or lists a olume mount point&
L9B*T 9< (dri e:)pat olume*ameL9B*T 9< (dri e:)pat /DL9B*T 9< (dri e:)pat /<
pat Specifies t e e1isting *TIS directory , ere t e mount point ,ill reside& olume*ame Specifies t e olume name t at is t e target of t e mount point& /D Remo es t e olume mount point from t e specified directory& /< <ists t e mounted olume name for t e specified directory&
"ossi#le alues for olume*ame along ,it current mount points are:
\\?\ olume 2Pcf4d66-d#80-22d#-a3O8-570d0246080f]\ C:\
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 74/158
\\?\ olume O85eO4d0-dfPf-22d#-#2fc-570d0246080f]\ E:\
\\?\ olume 2Pcf4d6O-d#80-22d#-a3O8-570d0246080f]\ D:\
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>mo e /?Lo es files and renames files and directories&
To mo e one or more files:
L9 E (/ = /- ) (dri e:)(pat )filename2(+&&&) destinationTo rename a directory:L9 E (/ = /- ) (dri e:)(pat )dirname2 dirname6
(dri e:)(pat )filename2 Specifies t e location and name of t e file or files you ,ant to mo e& destination Specifies t e ne, location of t e file& Destination can consist of a dri e letter and colon+ a directory name+ or a com#ination& !f you are mo ing only one file+ you can also include a filename if you ,ant to rename t e file , en you mo e it& (dri e:)(pat )dirname2 Specifies t e directory you ,ant to rename& dirname6 Specifies t e ne, name of t e directory&
/ Suppresses prompting to confirm you ,ant to o er,rite an e1isting destination file& /- Causes prompting to confirm you ,ant to o er,rite an e1isting destination file&
T e s,itc / may #e present in t e C9" CLD en ironment aria#le&T is may #e o erridden ,it /- on t e command line& Default isto prompt on o er,rites unless L9 E command is #eing e1ecuted from,it in a #atc script&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 75/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ms-dos su#system configuration commands /?
Gms-dosG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>msie1ec /?
C:\D9CBLE 2\TETRA-A>msie1ec /?
C:\D9CBLE 2\TETRA-A> A ,indo, appears after in o ing t is command telling
a#out t e features and e1planation&
GAG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>msinfoO6 /?GmsinfoO6G is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>msinfoO6GmsinfoO6G is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>n#tstat /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 76/158
Displays protocol statistics and current TC"/!" connections using * T$*et !9S o er TC"/!"%&
* TSTAT ( (-a Remote*ame) (-A !" address) (-c) (-n)
(-r) (-R) (-RR) (-s) (-S) (inter al) )
-a $adapter status% <ists t e remote mac ineGs name ta#le gi en its name -A $Adapter status% <ists t e remote mac ineGs name ta#le gi en its !" address& -c $cac e% <ists * TGs cac e of remote (mac ine) names and t eir !" addresses -n $names% <ists local *et !9S names& -r $resol ed% <ists names resol ed #y #roadcast and ia !*S -R $Reload% "urges and reloads t e remote cac e name ta#le -S $Sessions% <ists sessions ta#le ,it t e destination !" addresses
-s $sessions% <ists sessions ta#le con erting destination !" addresses to computer *ET !9S names& -RR $ReleaseRefres % Sends *ame Release pac ets to !*S and t en+ starts Refr es
Remote*ame Remote ost mac ine name& !" address Dotted decimal representation of t e !" address& inter al Redisplays selected statistics+ pausing inter al seconds #et,een eac display& "ress Ctrl C to stop redisplaying statistics&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>net ser ices o er ie,T e synta1 of t is command is:
SER !CES *ET START can #e used to start ser ices+ including:
*ET START A<ERTER *ET START R9 SER *ET START C<!E*T SER !CE I9R *ET ARE *ET START C<!" 99Q *ET START DFC" C<!E*T *ET START E E*T<9J
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 77/158
*ET START I!<E RE"<!CAT!9* *ET START LESSE*JER *ET START *ET <9J9* *ET START *T <L SECBR!T SB""9RT "R9 !DER *ET START "<BJ A*D "<A
*ET START REL9TE ACCESS C9**ECT!9* LA*AJER *ET START R9BT!*J A*D REL9TE ACCESS *ET START R"C<9CAT9R *ET START R"CSS *ET START SCFEDB<E *ET START SER ER *ET START S"99<ER *ET START TC"/!" *ET !9S FE<"ER SER !CE *ET START B"S *ET START 9RQSTAT!9*
en typed at t e command prompt+ ser ice names of t,o ,ords or more must #e enclosed in Kuotation mar s& Ior e1ample+ *ET START *ET <9J9*starts t e net logon ser ice&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ms-dos su#system configuration commandsGms-dosG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>net ser ices commandsT e synta1 of t is command is:
SER !CES *ET START can #e used to start ser ices+ including:
*ET START A<ERTER *ET START R9 SER *ET START C<!E*T SER !CE I9R *ET ARE
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 78/158
*ET START C<!" 99Q *ET START DFC" C<!E*T *ET START E E*T<9J *ET START I!<E RE"<!CAT!9* *ET START LESSE*JER
*ET START *ET <9J9* *ET START *T <L SECBR!T SB""9RT "R9 !DER *ET START "<BJ A*D "<A *ET START REL9TE ACCESS C9**ECT!9* LA*AJER *ET START R9BT!*J A*D REL9TE ACCESS *ET START R"C<9CAT9R *ET START R"CSS *ET START SCFEDB<E *ET START SER ER *ET START S"99<ER *ET START TC"/!" *ET !9S FE<"ER SER !CE
*ET START B"S *ET START 9RQSTAT!9*
en typed at t e command prompt+ ser ice names of t,o ,ords or more must #e enclosed in Kuotation mar s& Ior e1ample+ *ET START *ET <9J9*starts t e net logon ser ice&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>nets command o er ie,T e follo,ing command ,as not found: command o er ie,&
C:\D9CBLE 2\TETRA-A>nets /?
Bsage: nets (-a AliasIile) (-c Conte1t) (-r RemoteLac ine) (Command = -f ScriptIile)
T e follo,ing commands are a aila#le:
Commands in t is conte1t:? - Displays a list of commands&add - Adds a configuration entry to a list of entries&
#ridge - C anges to t e ^nets #ridgeG conte1t&delete - Deletes a configuration entry from a list of entries&diag - C anges to t e ^nets diagG conte1t&dump - Displays a configuration script&e1ec - Runs a script file&fire,all - C anges to t e ^nets fire,allG conte1t&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 79/158
elp - Displays a list of commands&interface - C anges to t e ^nets interfaceG conte1t&ras - C anges to t e ^nets rasG conte1t&routing - C anges to t e ^nets routingG conte1t&set - Bpdates configuration settings&
s o, - Displays information&,insoc - C anges to t e ^nets ,insoc G conte1t&
T e follo,ing su#-conte1ts are a aila#le: #ridge diag fire,all interface ras routing ,insoc
To ie, elp for a command+ type t e command+ follo,ed #y a space+ and t en type ?&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>nets ?Bsage: nets (-a AliasIile) (-c Conte1t) (-r RemoteLac ine) (Command = -f ScriptIile)
T e follo,ing commands are a aila#le:
Commands in t is conte1t:? - Displays a list of commands&add - Adds a configuration entry to a list of entries&
#ridge - C anges to t e ^nets #ridgeG conte1t&delete - Deletes a configuration entry from a list of entries&diag - C anges to t e ^nets diagG conte1t&dump - Displays a configuration script&e1ec - Runs a script file&fire,all - C anges to t e ^nets fire,allG conte1t&
elp - Displays a list of commands&interface - C anges to t e ^nets interfaceG conte1t&ras - C anges to t e ^nets rasG conte1t&routing - C anges to t e ^nets routingG conte1t&set - Bpdates configuration settings&s o, - Displays information&,insoc - C anges to t e ^nets ,insoc G conte1t&
T e follo,ing su#-conte1ts are a aila#le: #ridge diag fire,all interface ras routing ,insoc
To ie, elp for a command+ type t e command+ follo,ed #y a space+ and t en type ?&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 80/158
C:\D9CBLE 2\TETRA-A>?G?G is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>netstat /?
Displays protocol statistics and current TC"/!" net,or connections&
*ETSTAT (-a) (-#) (-e) (-n) (-o) (-p proto) (-r) (-s) (- ) (inter al)
-a Displays all connections and listening ports&
-# Displays t e e1ecuta#le in ol ed in creating eac connection or listening port& !n some cases ,ell- no,n e1ecuta#les ost multiple independent components+ and in t ese cases t e seKuence of components in ol ed in creating t e connection or listening port is displayed& !n t is case t e e1ecuta#le name is in () at t e #ottom+ on top is t e component it called+ and so fort until TC"/!" ,as reac ed& *ote t at t is option can #e time-consuming and ,ill fail unless you a e sufficient permissions& -e Displays Et ernet statistics& T is may #e com#ined ,it t e -s option& -n Displays addresses and port num#ers in numerical form& -o Displays t e o,ning process !D associated ,it eac connection& -p proto S o,s connections for t e protocol specified #y protoU proto may #e any of: TC"+ BD"+ TC" 0+ or BD" 0& !f used ,it t e -s option to display per-protocol statistics+ proto may #e any of: !"+ !" 0+ !CL"+ !CL" 0+ TC"+ TC" 0+ BD"+ or BD" 0& -r Displays t e routing ta#le& -s Displays per-protocol statistics& y default+ statistics are s o,n for !"+ !" 0+ !CL"+ !CL" 0+ TC"+ TC" 0+ BD"+ and BD" 0U t e -p option may #e used to specify a su#set of t e default& - en used in con;unction ,it -#+ ,ill display seKuence of components in ol ed in creating t e connection or listening port for all e1ecuta#les& inter al Redisplays selected statistics+ pausing inter al seconds #et,een eac display& "ress CTR< C to stop redisplaying statistics& !f omitted+ netstat ,ill print t e current configuration information once&
C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 81/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>nsloo up /?D*S reKuest timed out& timeout ,as 6 seconds&... CanGt find ser er name for address 246&20&37&22: Timed out
... Default ser ers are not a aila#leSer er: BnQno,nAddress: 246&20&37&22
D*S reKuest timed out& timeout ,as 6 seconds&... ReKuest to BnQno,n timed-out
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>nsloo up
D*S reKuest timed out& timeout ,as 6 seconds&... CanGt find ser er name for address 246&20&37&22: Timed out... Default ser ers are not a aila#leDefault Ser er: BnQno,nAddress: 246&20&37&22
> #yeSer er: BnQno,nAddress: 246&20&37&22
D*S reKuest timed out& timeout ,as 6 seconds&... ReKuest to BnQno,n timed-out> e1it
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>nsloo up su#commandsD*S reKuest timed out& timeout ,as 6 seconds&... CanGt find ser er name for address 246&20&37&22: Timed out... Default ser ers are not a aila#leSer er: BnQno,nAddress: 246&20&37&22
D*S reKuest timed out& timeout ,as 6 seconds&... ReKuest to BnQno,n timed-out
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 82/158
$sloo%uDisplays information t at you can use to diagnose Domain *ame System $D*S%infrastructure& efore using t is tool+ you s ould #e familiar ,it o, D*S ,or s& T e
*sloo up command-line tool is a aila#le only if you a e installed t e TC"/!" protocol&
Syntax
nsloo%u (-SubCommand ... ) ( ComputerToFind = (-Server )])
Parameters-SubCommand ...
Specifies one or more nsloo%u su#commands as a command-line option& Ior alist of su#commands+ see Related Topics&
ComputerToFind <oo s up information for ComputerToFind using t e current default D*S nameser er+ if no ot er ser er is specified& To loo up a computer not in t e currentD*S domain+ append a period to t e name&
-Server Specifies to use t is ser er as t e D*S name ser er& !f you omit -Server + t edefault D*S name ser er is used&
#el =? ]Displays a s ort summary of nsloo%u su#commands&
Remarks• !f ComputerToFind is an !" address and t e Kuery is for an A or "TR resource
record type+ t e name of t e computer is returned& !f ComputerToFind is a nameand does not a e a trailing period+ t e default D*S domain name is appended tot e name& T is #e a ior depends on t e state of t e follo,ing set su#commands:domain +src#list +defname + andsearc# &
• !f you type a yp en $-% instead of ComputerToFind + t e command promptc anges to nsloo%u interacti e mode&
• T e command-line lengt must #e less t an 630 c aracters&• $sloo%u as t,o modes: interacti e and noninteracti e&
!f you need to loo up only a single piece of data+ use noninteracti e mode& Iort e first parameter+ type t e name or !" address of t e computer t at you ,ant toloo up& Ior t e second parameter+ type t e name or !" address of a D*S nameser er& !f you omit t e second argument+ nsloo%u uses t e default D*S nameser er&
!f you need to loo up more t an one piece of data+ you can use interacti e mode&Type a yp en $-% for t e first parameter and t e name or !" address of a D*Sname ser er for t e second parameter& 9r+ omit #ot parameters and nsloo%u
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 83/158
uses t e default D*S name ser er& Iollo,ing are some tips a#out ,or ing ininteracti e mode:
o To interrupt interacti e commands at any time+ press CTR< &o To e1it+ type e&it&
o To treat a #uilt-in command as a computer name+ precede it ,it t eescape c aracter $\%&o An unrecogniHed command is interpreted as a computer name&
• !f t e loo up reKuest fails+ nsloo%u prints an error message& T e follo,ing ta#lelists possi#le error messages&
'rror message escri tion
Timed out
T e ser er did not respond to a reKuest after a certain amount of timeand a certain num#er of retries& ou can set t e time-out period ,itt e set timeout su#command& ou can set t e num#er of retries ,itt e set retr su#command&
No responsefrom server *o D*S name ser er is running on t e ser er computer&
No recordsT e D*S name ser er does not a e resource records of t e currentKuery type for t e computer+ alt oug t e computer name is alid& T eKuery type is specified ,it t e set *uer t e command&
Nonexistentdomain T e computer or D*S domain name does not e1ist&Connectionrefused
-or-
Network isunreachable
T e connection to t e D*S name ser er or finger ser er could not #emade& T is error commonly occurs ,it ls and finger reKuests&
Server failure T e D*S name ser er found an internal inconsistency in its data#aseand could not return a alid ans,er&
Refused T e D*S name ser er refused to ser ice t e reKuest&
Format error T e D*S name ser er found t at t e reKuest pac et ,as not in t e proper format& !t may indicate an error in nsloo%u &
• Ior more information a#out t e nsloo%u command and D*S+ see t e follo,ingresources:
o Licrosoft indo,s Resource Qits e# site $ ttp://,,,µsoft&com/%
o <ee+ T&+ Da ies+ _& 6777& Microsoft Windows 2 TC!"I! !rotocols andServices Technical #eference & Redmond+ as ington: Licrosoft "ress&
o Al#itH+ "&+ <ou ides+ L& and C& <iu& 2885& $%S and &I%$' Third (dition &Se#astopol+ California: 9GReilly and Associates+ !nc&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 84/158
Examples
Eac command-line option consists of a yp en $-% follo,ed immediately #y t ecommand name and+ in some cases+ an eKual sign $ % and t en a alue& Ior e1ample+ toc ange t e default Kuery type to ost $computer% information and t e initial time-out to
27 seconds+ type:
nsloo%u -*uer t e+#info -timeout+1,
Formatting legend Format Meaning
Italic !nformation t at t e user must supply
BoldElements t at t e user must type e1actlyas s o,n
Ellipsis $&&&% "arameter t at can #e repeated se eral
times in a command lineet,een #rac ets $()% 9ptional itemset,een #races $ ]%U c oices separated #y pipe
$=%& E1ample: e en=odd]Set of c oices from , ic t e user mustc oose only one
Courier font Code or program output
Related Topics
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>nt#ac up /?
C:\D9CBLE 2\TETRA-A>nt#ac up /?
C:\D9CBLE 2\TETRA-A> A ,indo, appears t at s o,s t e options for t e #ac uptoget er ,it t e command-line reference elpGAG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 85/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ntcmdprompt /?GntcmdpromptG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>ntcmdpromptGntcmdpromptG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ntsd /?
C:\D9CBLE 2\TETRA-A>ntsd /?
usage: ntsd (-?) (-6) (-d) (-g) (-J) (-myo#) (-lines) (-n) (-o) (-s) (- ) (-,) (-r rea Error<e el) (-t "rintError<e el) (- d) (-pd) (-pe) (-pt M) (-p ) (-1 = -1 e=d=n=i] Xe ent>) (-- = -p pid = -pn name = command-line = -H Cras DmpIile) (-Hp Cras "ageIile) (-premote transport) (-ro#p) (-aDll*ame) (-c command ) (-i !mage"at ) (-y Sym#ols"at ) (-clines M) (-srcpat Source"at ) (-NR \\mac ine) (-,a e Xpid>) (-remote transport:ser er name+portid) (-ser er transport:portid) (-ses) (-sfce) (-sic ) (-snul) (-noio) (-failinc) (-nos ell)
, ere: -? displays t is elp te1t command-line is t e command to run under t e de#ugger -- is t e same as -J -g -o -p -2 -d -pd -aDll*ame sets t e default e1tension D<< -c e1ecutes t e follo,ing de#ugger command -clines num#er of lines of output istory retrie ed #y a remote client -failinc causes incomplete sym#ol and module loads to fail -d sends all de#ugger output to ernel de#ugger ia D#g"rint -d cannot #e used ,it de#ugger remoting -d can only #e used , en t e ernel de#ugger is ena#led -g ignores initial #rea point in de#uggee -J ignores final #rea point at process termination - d specifies t at t e de#ug eap s ould not #e used
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 86/158
for created processes& T is only ,or s on indo,s istler& -o de#ugs all processes launc ed #y de#uggee -p pid specifies t e decimal process !d to attac to -pd specifies t at t e de#ugger s ould automatically detac -pe specifies t at any attac s ould #e to an e1isting de#ug port
-pn name specifies t e name of t e process to attac to -pt M specifies t e interrupt timeout -p specifies t at any attac s ould #e nonin asi e -r specifies t e $7-O% error le el to #rea on $SeeSetError<e el% -ro#p allo,s #rea points to #e set in read-only memory -t specifies t e $7-O% error le el to display $SeeSetError<e el% -, specifies to de#ug 20 #it applications in a separate DL -1 sets second-c ance #rea on A e1ceptions -1 e=d=n=i] Xe ent> sets t e #rea status for t e specified e ent -6 creates a separate console ,indo, for de#uggee -i !mage"at specifies t e location of t e e1ecuta#les t at generated
t e fault $see '*T'E@ECBTA <E'!LAJE'"ATF% -lines reKuests t at line num#er information #e used if present -myo# ignores ersion mismatc es in D JFE<"&D<< -n ena#les er#ose output from sym#ol andler -noio disa#les all !/9 for dedicated remoting ser ers -nos ell disa#les t e &s ell $VV% command -NR X\\mac ine> Kueries for remote ser ers -s disa#les laHy sym#ol loading -ses ena#les strict sym#ol loading -sfce fails critical errors encountered during file searc ing -sic ignores t e C record , en sym#ol loading -snul disa#les automatic sym#ol loading for unKualified names -srcpat XSource"at > specifies t e source searc pat - ena#les er#ose output from de#ugger -,a e Xpid> ,a es up a sleeping de#ugger and e1its -y XSym#ols"at > specifies t e sym#ol searc pat $see '*T'S L 9<'"ATF% -H XCras DmpIile> specifies t e name of a cras dump file to de#ug -Hp XCras "ageIile> specifies t e name of a page&dmp file to use ,it a cras dump -remote lets you connect to a de#ugger session started ,it -ser er must #e t e first argument if present transport: tcp = npipe = ssl = spipe = 2O8P = com name: mac ine name on , ic t e de#ug ser er ,as created portid: id of t e port t e de#ugger ser er ,as created on for tcp use: port Xsoc et port M> for npipe use: pipe Xname of pipe> for 2O8P use: c annel Xc annel M> for com use: port XC9L port>+#aud X#aud rate>+ c annel Xc annel M> for ssl and spipe see t e documentation
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 87/158
e1ample: &&& -remote npipe:ser er yourmac ine+pipe foo#ar -ser er creates a de#ugger session ot er people can connect to must #e t e first argument if present transport: tcp = npipe = ssl = spipe = 2O8P = com portid: id of t e port remote users can connect to
for tcp use: port Xsoc et port M> for npipe use: pipe Xname of pipe> for 2O8P use: c annel Xc annel M> for com use: port XC9L port>+#aud X#aud rate>+ c annel Xc annel M> for ssl and spipe see t e documentation e1ample: &&& -ser er npipe:pipe foo#ar -premote transport specifies t e process ser er to connect to transport arguments are gi en as ,it remoting
En ironment aria#les:
'*T'S L 9<'"ATF (Dri e:)("at ) Specify sym#ol image pat &
'*T'A<T'S L 9<'"ATF (Dri e:)("at ) Specify an alternate sym#ol image pat &
'*T'DE BJJER'E@TE*S!9*'"ATF (Dri e:)("at ) Specify a pat , ic s ould #e searc ed first for e1tensions dlls
'*T'E@ECBTA <E'!LAJE'"ATF (Dri e:)("at ) Specify e1ecuta#le image pat &
'*T'S9BRCE'"ATF (Dri e:)("at ) Specify source file pat &
'*T'DE BJ'<9J'I!<E'9"E* filename !f specified+ all output ,ill #e ,ritten to t is file from offset 7&
'*T'DE BJ'<9J'I!<E'A""E*D filename !f specified+ all output ,ill #e A""E*Ded to t is file&
'*T'DE BJ'F!ST9R 'S![E siHe Specifies t e siHe of a ser erGs output istory in ilo#ytes
Control Qeys:
XCtrl- >XEnter> Nuit de#ugger XCtrl-C> rea into Target XCtrl-I>XEnter> Iorce a #rea into de#uggee $same as Ctrl-C%
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 88/158
XCtrl-">XEnter> De#ug Current de#ugger XCtrl- >XEnter> Toggle er#ose mode XCtrl- >XEnter> "rint ersion informationntsd: e1iting - press enter ---
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>openfiles /?
9"E*I!<ES /parameter (arguments)
Description: Ena#les an administrator to list or disconnect files and folders t at a e #een opened on a system&
"arameter <ist: /Disconnect Disconnects one or more open files&
/Nuery Displays files opened locally or from s ared folders&
/<ocal Ena#les / Disa#les t e display of local open files& *ote: Ena#ling t is flag adds performance o er ead&
E1amples: 9"E*I!<ES /Disconnect /? 9"E*I!<ES /Nuery /? 9"E*I!<ES /<ocal /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>pagefileconfig /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> A messenger #o1 appears e1plaining more on , at to do,it
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 89/158
t is command&GAG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>pat /?Displays or sets a searc pat for e1ecuta#le files&
"ATF ((dri e:)pat (U&&&)(U "ATF )"ATF U
Type "ATF U to clear all searc -pat settings and direct cmd&e1e to searconly in t e current directory&Type "ATF ,it out parameters to display t e current pat &!ncluding "ATF in t e ne, pat setting causes t e old pat to #eappended to t e ne, setting&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>pat ping /?
Bsage: pat ping (-g ost-list) (- ma1imum' ops) (-i address) (-n) (-p period) (-K num'Kueries) (-, timeout) (-") (-R) (-T) (-P) (-0) target'name
9ptions: -g ost-list <oose source route along ost-list& - ma1imum' ops La1imum num#er of ops to searc for target& -i address Bse t e specified source address& -n Do not resol e addresses to ostnames& -p period ait period milliseconds #et,een pings& -K num'Kueries *um#er of Kueries per op& -, timeout ait timeout milliseconds for eac reply& -" Test for RS " "ATF connecti ity& -R Test if eac op is RS " a,are& -T Test connecti ity to eac op ,it <ayer-6 priority tags&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 90/158
-P Iorce using !" P& -0 Iorce using !" 0&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>pause /?Suspends processing of a #atc program and displays t e message "ress any ey to continue & & &C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>p#admin /?Gp#adminG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>pentnt /?Reports on , et er local computer e1 i#its !ntel$tm% "entiumIloating "oint Di ision Error
pentnt (-?) (-F) (- ) (-C) (-c) (-I) (-f) (-9) (-o)
Run ,it out arguments t is program ,ill tell you if t e system e1 i#its t e "entium floating point di ision error and , et er floating point emulation is forced and , et er floating point ard,are is disa#led&
-? "rint t is elp message - -F
-c Turn on conditional emulation& T is means t at floating -C point emulation ,ill #e forced on if and only if t e system detects t e "entium floating point di ision error at #oot& Re#oot reKuired #efore t is ta es effect& T is is , at s ould generally #e used&
-f Turn on forced emulation& T is means t at floating
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 91/158
-I point ard,are is disa#led and floating point emulation ,ill al,ays #e forced on+ regardless of , et er t e system e1 i#its t e "entium di ision error& Bseful for testing soft,are emulators and for ,or ing around floating point ard,are defects un no,n to t e 9S& Re#oot reKuired #efore
t is ta es effect&
-o Turn off forced emulation& Reena#les floating point ard,are -9 if present& Re#oot reKuired #efore t is ta es effect&
T e Iloating "oint Di ision error t at t is program addresses onlyoccurs on certain !ntel "entium processors& !t only affects floating
point operations& T e pro#lem is descri#ed in detail in a , ite paper a aila#le from !ntel& !f you are doing critical ,or ,it programs t at
perform floating point di ision and certain related functions t atuse t e same ard,are $including remainder and transcendtal functions%+
you may ,is to use t is program to force emulation&Type pentnt -? = more if you need to see all t e elp te1t
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>pentnt -? = moreReports on , et er local computer e1 i#its !ntel$tm% "entiumIloating "oint Di ision Error
pentnt (-?) (-F) (- ) (-C) (-c) (-I) (-f) (-9) (-o)
Run ,it out arguments t is program ,ill tell you if t e system e1 i#its t e "entium floating point di ision error and , et er floating point emulation is forced and , et er floating point ard,are is disa#led&
-? "rint t is elp message - -F
-c Turn on conditional emulation& T is means t at floating -C point emulation ,ill #e forced on if and only if t e system detects t e "entium floating point di ision error at #oot& Re#oot reKuired #efore t is ta es effect& T is is , at s ould generally #e used&
-f Turn on forced emulation& T is means t at floating -I point ard,are is disa#led and floating point emulation
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 92/158
,ill al,ays #e forced on+ regardless of , et er t e system e1 i#its t e "entium di ision error& Bseful for testing soft,are emulators and for ,or ing around floating point ard,are defects un no,n to t e 9S& Re#oot reKuired #efore t is ta es effect&
-o Turn off forced emulation& Reena#les floating point ard,are -9 if present& Re#oot reKuired #efore t is ta es effect&
T e Iloating "oint Di ision error t at t is program addresses onlyoccurs on certain !ntel "entium processors& !t only affects floating
point operations& T e pro#lem is descri#ed in detail in a , ite paper a aila#le from !ntel& !f you are doing critical ,or ,it programs t at
perform floating point di ision and certain related functions t atuse t e same ard,are $including remainder and transcendtal functions%+you may ,is to use t is program to force emulation&
Type pentnt -? = more if you need to see all t e elp te1t
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>perfmon /?
C:\D9CBLE 2\TETRA-A> T is command displays t e performance monitoring of t e"C& T is can also in o e from t e administrati e tool at control panel> isG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>ping /?
Bsage: ping (-t) (-a) (-n count) (-l siHe) (-f) (-i TT<) (- T9S) (-r count) (-s count) ((-; ost-list) = (- ost-list)) (-, timeout) target'name
9ptions:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 93/158
-t "ing t e specified ost until stopped& To see statistics and continue - type Control- rea U To stop - type Control-C& -a Resol e addresses to ostnames& -n count *um#er of ec o reKuests to send&
-l siHe Send #uffer siHe& -f Set DonGt Iragment flag in pac et& -i TT< Time To <i e& - T9S Type 9f Ser ice& -r count Record route for count ops& -s count Timestamp for count ops& -; ost-list <oose source route along ost-list& - ost-list Strict source route along ost-list& -, timeout Timeout in milliseconds to ,ait for eac reply&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>popd /?C anges to t e directory stored #y t e "BSFD command&
"9"D
!f Command E1tensions are ena#led t e "9"D command ,ill deleteany temporary dri e letter created #y "BSFD , en you "9"D t atdri e off t e pus ed directory stac &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>print /?"rints a te1t file&
"R!*T (/D:de ice) ((dri e:)(pat )filename(&&&))
/D:de ice Specifies a print de ice&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 94/158
C:\D9CBLE 2\TETRA-A>prncnfg /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A> A dialog #o1 appears telling to run t e command undercscri pt command&GAG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>prndr r /?
C:\D9CBLE 2\TETRA-A> Same t ing+ a dialog #o1 appears&GSameG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>prn;o#s
C:\D9CBLE 2\TETRA-A> Same t ing+ a dialog #o1 appears&GSameG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>prnmngr /?
C:\D9CBLE 2\TETRA-A> Same t ing+ a dialog #o1 appears&GSameG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>prnport //
C:\D9CBLE 2\TETRA-A> Same t ing+ a dialog #o1 appears&GSameG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 95/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>prnKctl /?
C:\D9CBLE 2\TETRA-A> Same t ing+ a dialog #o1 appears&GSameG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>prompt /?C anges t e cmd&e1e command prompt&
"R9L"T (te1t)
te1t Specifies a ne, command prompt&
"rompt can #e made up of normal c aracters and t e follo,ing special codes:
A W $Ampersand% = $pipe% C $ $<eft parent esis% D Current date E Escape code $ASC!! code 64% I % $Rig t parent esis% J > $greater-t an sign% F ac space $erases pre ious c aracter% < X $less-t an sign% * Current dri e " Current dri e and pat N $eKual sign% S $space% T Current time indo,s @" ersion num#er ' Carriage return and linefeed $dollar sign%
!f Command E1tensions are ena#led t e "R9L"T command supportst e follo,ing additional formatting c aracters:
Hero or more plus sign $ % c aracters depending upon t e dept of t e "BSFD directory stac + one c aracter for eac le el pus ed&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 96/158
L Displays t e remote name associated ,it t e current dri e letter or t e empty string if current dri e is not a net,or dri e&
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>pus d /?Stores t e current directory for use #y t e "9"D command+ t enc anges to t e specified directory&
"BSFD (pat = &&)
pat Specifies t e directory to ma e t e current directory&
!f Command E1tensions are ena#led t e "BSFD command acceptsnet,or pat s in addition to t e normal dri e letter and pat &!f a net,or pat is specified+ "BSFD ,ill create a temporarydri e letter t at points to t at specified net,or resource andt en c ange t e current dri e and directory+ using t e ne,lydefined dri e letter& Temporary dri e letters are allocated from[: on do,n+ using t e first unused dri e letter found&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>Kuery /?GKueryG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Kuery //GKueryG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>Kuery -?GKueryG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 97/158
C:\D9CBLE 2\TETRA-A>rasdial /?BSAJE: rasdial entryname (username (pass,ord=.)) (/D9LA!*:domain) (/"F9*E:p onenum#er) (/CA<< ACQ:call#ac num#er) (/"F9*E 99Q:p one#oo file) (/"REI!@SBII!@)
rasdial (entryname) /D!SC9**ECT
rasdial
Command completed successfully&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>rcp /?
Copies files to and from computer running t e RC" ser ice&
RC" (-a = -#) (- ) (-r) ( ost)(&user:)source ( ost)(&user:) pat \destination
-a Specifies ASC!! transfer mode& T is mode con erts t e E9< c aracters to a carriage return for B*!@ and a carriage return/line feed for personal computers& T is is t e default transfer mode& -# Specifies #inary image transfer mode& - Transfers idden files& -r Copies t e contents of all su#directoriesU destination must #e a directory& ost Specifies t e local or remote ost& !f ost is specified as an !" address 9R if ost name contains dots+ you must specify t e user& &user: Specifies a user name to use+ rat er t an t e current user name& source Specifes t e files to copy& pat \destination Specifies t e pat relati e to t e logon directory on t e remote ost& Bse t e escape c aracters $\ + + or G% in remote pat s to use ,ildcard c aracters on t e remote ost&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 98/158
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 99/158
7 - Succussful 2 - Iailed
Ior elp on a specific operation type:
REJ 9peration /?
E1amples:
REJ NBER /? REJ ADD /? REJ DE<ETE /? REJ C9" /? REJ SA E /? REJ REST9RE /?
REJ <9AD /? REJ B*<9AD /? REJ C9L"ARE /? REJ E@"9RT /? REJ !L"9RT /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>reg /?
Console Registry Tool for indo,s - ersion O&7Copyrig t $C% Licrosoft Corp& 2852-6772& All rig ts reser ed
REJ 9peration ("arameter <ist)
9peration ( NBER = ADD = DE<ETE = C9" = SA E = <9AD = B*<9AD = REST9RE = C9L"ARE = E@"9RT = !L"9RT )
Return Code: $E1cept of REJ C9L"ARE%
7 - Succussful 2 - Iailed
Ior elp on a specific operation type:
REJ 9peration /?
E1amples:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 100/158
REJ NBER /? REJ ADD /? REJ DE<ETE /? REJ C9" /?
REJ SA E /? REJ REST9RE /? REJ <9AD /? REJ B*<9AD /? REJ C9L"ARE /? REJ E@"9RT /? REJ !L"9RT /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>regs rO6 /?
C:\D9CBLE 2\TETRA-A>regs rO6
C:\D9CBLE 2\TETRA-A> A dialog #o1 appears telling t e ot er parameters needed to e1ecute t e command&GAG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>relog /?
Licrosoft r Relog&e1e $3&2&6077&7%c Licrosoft Corporation& All rig ts reser ed&
Relog creates ne, performance logs from data in e1isting performance logs #yc anging t e sampling rate and/or con erting t e file format& Supports all
performance log formats+ including indo,s *T P&7 compressed logs&
Bsage:relog Xfilename (filename &&&)> (options)
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 101/158
"arameters: Xfilename (filename &&&)> "erformance file to relog&
9ptions: -? Displays conte1t sensiti e elp&
-a Append output to e1isting #inary file& -c Xpat (pat &&&)> Counters to filter from input log& -cf Xfilename> Iile listing performance counters to filter form t e input log& Default is all counters in t e original log file& -f XCS =TS = !*=SN<> 9utput file format& -t X alue> 9nly ,rite e ery nt record into t e output file& Default is to ,rite e ery record& -o 9utput file pat or SN< data#ase& -# XL/d/yyyy :mm:ss(AL="L)> egin time for t e first record to ,rite into t e output file&
-e XL/d/yyyy :mm:ss(AL="L)> End time for t e last record to ,rite into t e output file& -config Xfilename> Settings file containing command options& -K <ist performance counters in t e input file& -y Ans,er yes to all Kuestions ,it out prompting&
E1amples: relog logfile&cs -c \"rocessor$'Total%\ "rocessor Time -o logfile&#lg relog logfile&#lg -cf counters&t1t -f #lg relog logfile&#lg -f cs -o logfile&cs -t 6 relog logfile&#lg -K -o counters&t1t
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>rem /?Records comments $remar s% in a #atc file or C9*I!J&S S&
REL (comment)
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>rename /?Renames a file or files&
RE*ALE (dri e:)(pat )filename2 filename6&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 102/158
RE* (dri e:)(pat )filename2 filename6&
*ote t at you cannot specify a ne, dri e or pat for your destination file&
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>replace /?Replaces files&
RE"<ACE (dri e2:)(pat 2)filename (dri e6:)(pat 6) (/A) (/") (/R) (/ )RE"<ACE (dri e2:)(pat 2)filename (dri e6:)(pat 6) (/") (/R) (/S) (/ ) (/B)
(dri e2:)(pat 2)filename Specifies t e source file or files&
(dri e6:)(pat 6) Specifies t e directory , ere files are to #e replaced& /A Adds ne, files to destination directory& Cannot use ,it /S or /B s,itc es& /" "rompts for confirmation #efore replacing a file or adding a source file& /R Replaces read-only files as ,ell as unprotected files& /S Replaces files in all su#directories of t e destination directory& Cannot use ,it t e /A s,itc & / aits for you to insert a dis #efore #eginning& /B Replaces $updates% only files t at are older t an source files& Cannot use ,it t e /A s,itc &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>reset session /?Reset t e session su#sytem ard,are and soft,are to no,n initial alues&
RESET SESS!9* sessionname = sessionid] (/SER ER:ser ername) (/ )
sessionname !dentifies t e session ,it name sessionname& sessionid !dentifies t e session ,it !D sessionid& /SER ER:ser ername T e ser er containing t e session $default is current%& / Display additional information&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 103/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>re1ec /?
Runs commands on remote osts running t e RE@EC ser ice& Re1ecaut enticates t e user name on t e remote ost #efore e1ecuting t especified command&
RE@EC ost (-l username) (-n) command
ost Specifies t e remote ost on , ic to run command& -l username Specifies t e user name on t e remote ost& -n Redirects t e input of RE@EC to *B<<& command Specifies t e command to run&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>rmdir /?Remo es $deletes% a directory&
RLD!R (/S) (/N) (dri e:)patRD (/S) (/N) (dri e:)pat
/S Remo es all directories and files in t e specified directory in addition to t e directory itself& Bsed to remo e a directory tree&
/N Nuiet mode+ do not as if o to remo e a directory tree ,it /S
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>route /?
Lanipulates net,or routing ta#les&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 104/158
R9BTE (-f) (-p) (command (destination) (LASQ netmas ) (gate,ay) (LETR!C metric) (!I interface)
-f Clears t e routing ta#les of all gate,ay entries& !f t is is used in con;unction ,it one of t e commands+ t e ta#les are
cleared prior to running t e command& -p en used ,it t e ADD command+ ma es a route persistent across #oots of t e system& y default+ routes are not preser ed , en t e system is restarted& !gnored for all ot er commands+ , ic al,ays affect t e appropriate persistent routes& T is option is not supported in indo,s 83& command 9ne of t ese: "R!*T "rints a route ADD Adds a route DE<ETE Deletes a route CFA*JE Lodifies an e1isting route
destination Specifies t e ost& LASQ Specifies t at t e ne1t parameter is t e Gnetmas G alue& netmas Specifies a su#net mas alue for t is route entry& !f not specified+ it defaults to 633&633&633&633& gate,ay Specifies gate,ay& interface t e interface num#er for t e specified route& LETR!C specifies t e metric+ ie& cost for t e destination&
All sym#olic names used for destination are loo ed up in t e net,or data#asefile *ET 9RQS& T e sym#olic names for gate,ay are loo ed up in t e ost namedata#ase file F9STS&
!f t e command is "R!*T or DE<ETE& Destination or gate,ay can #e a ,ildcard+$,ildcard is specified as a star G.G%+ or t e gate,ay argument may #e omitted&
!f Dest contains a . or ?+ it is treated as a s ell pattern+ and onlymatc ing destination routes are printed& T e G.G matc es any string+and G?G matc es any one c ar& E1amples: 234&.&2+ 234&.+ 264&.+ .66P.&Diagnostic *otes: !n alid LASQ generates an error+ t at is , en $DEST W LASQ% V DEST& E1ample> route ADD 234&7&7&7 LASQ 233&7&7&7 234&33&57&2 !I 2 T e route addition failed: T e specified mas parameter is in alid& $Destination W Las % V Destination&
E1amples:
> route "R!*T > route ADD 234&7&7&7 LASQ 633&7&7&7 234&33&57&2 LETR!C O !I 6 destinationZ Zmas Zgate,ay metricZ Z !nterfaceZ
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 105/158
!f !I is not gi en+ it tries to find t e #est interface for a gi en gate,ay& > route "R!*T > route "R!*T 234. &&&& 9nly prints t ose matc ing 234. > route CFA*JE 234&7&7&7 LASQ 633&7&7&7 234&33&57&3 LETR!C 6 !I 6
CFA*JE is used to modify gate,ay and/or metric only& > route "R!*T > route DE<ETE 234&7&7&7 > route "R!*T
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>route print
!nterface <ist712 &&&&&&&&&&&&&&&&&&&&&&&&&&& LS TC" <oop#ac interface716 &&&77 25 5# #O P# 04 &&&&&& roadcom *et@treme 3411 Jiga#it Controller - "ac
et Sc eduler Liniport71O &&&77 28 d6 76 37 2P &&&&&& !ntel$R% "R9/ ireless O8P3A J *et,or Connection - "ac et Sc eduler Liniport7127773 &&&77 20 P2 #P e8 46 &&&&&& luetoot "ersonal Area *et,or from T9SF! A - "ac et Sc eduler Liniport
Acti e Routes: *et,or Destination *etmas Jate,ay !nterface Letric 7&7&7&7 7&7&7&7 286&205&O7&6 286&205&O7&2O4 67 7&7&7&7 7&7&7&7 286&205&O7&O 286&205&O7&2O4 67 7&7&7&7 7&7&7&7 286&205&O7&P 286&205&O7&2O4 67 264&7&7&7 633&7&7&7 264&7&7&2 264&7&7&2 2 286&205&O7&7 633&633&633&7 286&205&O7&2O4 286&205&O7&2O4 67 286&205&O7&2O4 633&633&633&633 264&7&7&2 264&7&7&2 67 286&205&O7&633 633&633&633&633 286&205&O7&2O4 286&205&O7&2O4 67 66P&7&7&7 6P7&7&7&7 286&205&O7&2O4 286&205&O7&2O4 67 633&633&633&633 633&633&633&633 286&205&O7&2O4 O 2 633&633&633&633 633&633&633&633 286&205&O7&2O4 286&205&O7&2O4 2 633&633&633&633 633&633&633&633 286&205&O7&2O4 27773 2Default Jate,ay: 286&205&O7&O
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 106/158
"ersistent Routes: *one
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>rs /?rs : remote terminal session not supported
Runs commands on remote osts running t e RSF ser ice&
RSF ost (-l username) (-n) command
ost Specifies t e remote ost on , ic to run command& -l username Specifies t e user name to use on t e remote ost& !f omitted+ t e logged on user name is used& -n Redirects t e input of RSF to *B<<& command Specifies t e command to run&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>rsm /?
Bna#le to parse arguments&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>rsm /
Bna#le to parse arguments&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 107/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>runas /?RB*AS BSAJE:
RB*AS ( (/noprofile = /profile) (/en ) (/netonly) ) /user:XBser*ame> program
RB*AS ( (/noprofile = /profile) (/en ) (/netonly) ) /smartcard (/user:XBser*ame>) program
/noprofile specifies t at t e userGs profile s ould not #e loaded& T is causes t e application to load more Kuic ly+ #ut can cause some applications to malfunction& /profile specifies t at t e userGs profile s ould #e loaded& T is is t e default&
/en to use current en ironment instead of userGs& /netonly use if t e credentials specified are for remote access only& /sa ecred to use credentials pre iously sa ed #y t e user& T is option is not a aila#le on indo,s @" Fome Edition and ,ill #e ignored& /smartcard use if t e credentials are to #e supplied from a smartcard& /user XBser*ame> s ould #e in form BSERYD9LA!* or D9LA!*\BSER program command line for E@E& See #elo, for e1amples
E1amples:> runas /noprofile /user:mymac ine\administrator cmd> runas /profile /en /user:mydomain\admin mmc ,indir \systemO6\dsa&msc> runas /en /user:userYdomainµsoft&com notepad \ my file&t1t\
*9TE: Enter userGs pass,ord only , en prompted& *9TE: BSERYD9LA!* is not compati#le ,it /netonly& *9TE: /profile is not compati#le ,it /netonly&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>sc /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 108/158
... BnrecogniHed Command ...DESCR!"T!9*: SC is a command line program used for communicating ,it t e *T Ser ice Controller and ser ices&BSAJE:
sc Xser er> (command) (ser ice name) Xoption2> Xoption6>&&&
T e option Xser er> as t e form \\Ser er*ame Iurt er elp on commands can #e o#tained #y typing: sc (command) Commands: Kuery-----------Nueries t e status for a ser ice+ or enumerates t e status for types of ser ices& Kuerye1---------Nueries t e e1tended status for a ser ice+ or enumerates t e status for types of ser ices& start-----------Starts a ser ice& pause-----------Sends a "ABSE control reKuest to a ser ice&
interrogate-----Sends an !*TERR9JATE control reKuest to a ser ice& continue--------Sends a C9*T!*BE control reKuest to a ser ice& stop------------Sends a ST9" reKuest to a ser ice& config----------C anges t e configuration of a ser ice $persistant%& description-----C anges t e description of a ser ice& failure---------C anges t e actions ta en #y a ser ice upon failure& Kc--------------Nueries t e configuration information for a ser ice& Kdescription----Nueries t e description for a ser ice& Kfailure--------Nueries t e actions ta en #y a ser ice upon failure& delete----------Deletes a ser ice $from t e registry%& create----------Creates a ser ice& $adds it to t e registry%& control---------Sends a control to a ser ice& sds o,----------Displays a ser iceGs security descriptor& sdset-----------Sets a ser iceGs security descriptor& JetDisplay*ame--Jets t e Display*ame for a ser ice& JetQey*ame------Jets t e Ser iceQey*ame for a ser ice& EnumDepend------Enumerates Ser ice Dependencies&
T e follo,ing commands donGt reKuire a ser ice name: sc Xser er> Xcommand> Xoption> #oot------------$o = #ad% !ndicates , et er t e last #oot s ould #e sa ed as t e last- no,n-good #oot configuration <oc ------------<oc s t e Ser ice Data#ase Nuery<oc -------Nueries t e <oc Status for t e SCLanager Data#aseE@AL"<E: sc start LySer ice
ould you li e to see elp for t e NBER and NBER E@ commands? ( y = n ): yNBER and NBER E@ 9"T!9*S : !f t e Kuery command is follo,ed #y a ser ice name+ t e status
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 109/158
for t at ser ice is returned& Iurt er options do not apply in t is case& !f t e Kuery command is follo,ed #y not ing or one of t e options listed #elo,+ t e ser ices are enumerated& type Type of ser ices to enumerate $dri er+ ser ice+ all% $default ser ice%
state State of ser ices to enumerate $inacti e+ all% $default acti e% #ufsiHe T e siHe $in #ytes% of t e enumeration #uffer $default P780% ri T e resume inde1 num#er at , ic to #egin t e enumeration $default 7% group Ser ice group to enumerate $default all groups%S *TA@ E@AL"<ESsc Kuery - Enumerates status for acti e ser ices W dri erssc Kuery messenger - Displays status for t e messenger ser ice
sc Kuerye1 messenger - Displays e1tended status for t e messenger ser icesc Kuery type dri er - Enumerates only acti e dri erssc Kuery type ser ice - Enumerates only inO6 ser icessc Kuery state all - Enumerates all ser ices W dri erssc Kuery #ufsiHe 37 - Enumerates ,it a 37 #yte #uffer&sc Kuery ri 2P - Enumerates ,it resume inde1 2Psc Kuerye1 group - Enumerates acti e ser ices not in a groupsc Kuery type ser ice type interact - Enumerates all interacti e ser icessc Kuery type dri er group *D!S - Enumerates all *D!S dri ers
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>sc tas s /?
SCFTASQS /parameter (arguments)
Description: Ena#les an administrator to create+ delete+ Kuery+ c ange+ run and end sc eduled tas s on a local or remote system& Replaces AT&e1e&
"arameter <ist: /Create Creates a ne, sc eduled tas &
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 110/158
/Delete Deletes t e sc eduled tas $s%&
/Nuery Displays all sc eduled tas s&
/C ange C anges t e properties of sc eduled tas &
/Run Runs t e sc eduled tas immediately&
/End Stops t e currently running sc eduled tas &
/? Displays t is elp/usage&
E1amples: SCFTASQS SCFTASQS /?
SCFTASQS /Run /? SCFTASQS /End /? SCFTASQS /Create /? SCFTASQS /Delete /? SCFTASQS /Nuery /? SCFTASQS /C ange /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>secedit /?
C:\D9CBLE 2\TETRA-A> A dialog/ elp #o1 appears a#out t e security management&GAG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>set /?Displays+ sets+ or remo es cmd&e1e en ironment aria#les&
SET ( aria#le (string))
aria#le Specifies t e en ironment- aria#le name& string Specifies a series of c aracters to assign to t e aria#le&
Type SET ,it out parameters to display t e current en ironment aria#les&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 111/158
!f Command E1tensions are ena#led SET c anges as follo,s:
SET command in o ed ,it ;ust a aria#le name+ no eKual sign or alue,ill display t e alue of all aria#les , ose prefi1 matc es t e name
gi en to t e SET command& Ior e1ample:
SET "
,ould display all aria#les t at #egin ,it t e letter G"G
SET command ,ill set t e ERR9R<E E< to 2 if t e aria#le name is notfound in t e current en ironment&
SET command ,ill not allo, an eKual sign to #e part of t e name of a aria#le&
T,o ne, s,itc es a e #een added to t e SET command:
SET /A e1pression SET /" aria#le (promptString)
T e /A s,itc specifies t at t e string to t e rig t of t e eKual signis a numerical e1pression t at is e aluated& T e e1pression e aluator is pretty simple and supports t e follo,ing operations+ in decreasingorder of precedence:
$% - grouping V - - unary operators . / - arit metic operators - - arit metic operators XX >> - logical s ift W - #it,ise and Z - #it,ise e1clusi e or = - #it,ise or . / - - assignment W Z = XX >> + - e1pression separator
!f you use any of t e logical or modulus operators+ you ,ill need toenclose t e e1pression string in Kuotes& Any non-numeric strings in t ee1pression are treated as en ironment aria#le names , ose alues arecon erted to num#ers #efore using t em& !f an en ironment aria#le nameis specified #ut is not defined in t e current en ironment+ t en a alueof Hero is used& T is allo,s you to do arit metic ,it en ironment
aria#le alues ,it out a ing to type all t ose signs to get t eir
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 112/158
alues& !f SET /A is e1ecuted from t e command line outside of acommand script+ t en it displays t e final alue of t e e1pression& T eassignment operator reKuires an en ironment aria#le name to t e left of t e assignment operator& *umeric alues are decimal num#ers+ unless
prefi1ed #y 71 for e1adecimal num#ers+ and 7 for octal num#ers&
So 7126 is t e same as 25 is t e same as 766& "lease note t at t e octalnotation can #e confusing: 75 and 78 are not alid num#ers #ecause 5 and8 are not alid octal digits&
T e /" s,itc allo,s you to set t e alue of a aria#le to a line of inputentered #y t e user& Displays t e specified promptString #efore readingt e line of input& T e promptString can #e empty&
En ironment aria#le su#stitution as #een en anced as follo,s:
"ATF:str2 str6
,ould e1pand t e "ATF en ironment aria#le+ su#stituting eac occurrenceof str2 in t e e1panded result ,it str6 & str6 can #e t e emptystring to effecti ely delete all occurrences of str2 from t e e1pandedoutput& str2 can #egin ,it an asteris + in , ic case it ,ill matce eryt ing from t e #eginning of t e e1panded output to t e firstoccurrence of t e remaining portion of str2&
Lay also specify su#strings for an e1pansion&
"ATF: 27+3
,ould e1pand t e "ATF en ironment aria#le+ and t en use only t e 3c aracters t at #egin at t e 22t $offset 27% c aracter of t e e1pandedresult& !f t e lengt is not specified+ t en it defaults to t eremainder of t e aria#le alue& !f eit er num#er $offset or lengt % isnegati e+ t en t e num#er used is t e lengt of t e en ironment aria#le
alue added to t e offset or lengt specified&
"ATF: -27
,ould e1tract t e last 27 c aracters of t e "ATF aria#le&
"ATF: 7+-6
,ould e1tract all #ut t e last 6 c aracters of t e "ATF aria#le&
Iinally+ support for delayed en ironment aria#le e1pansion as #eenadded& T is support is al,ays disa#led #y default+ #ut may #eena#led/disa#led ia t e / command line s,itc to CLD&E@E& See CLD /?
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 113/158
Delayed en ironment aria#le e1pansion is useful for getting aroundt e limitations of t e current e1pansion , ic appens , en a lineof te1t is read+ not , en it is e1ecuted& T e follo,ing e1ampledemonstrates t e pro#lem ,it immediate aria#le e1pansion:
set AR #efore if AR #efore $ set AR after if AR after Yec o !f you see t is+ it ,or ed %
,ould ne er display t e message+ since t e AR in 9TF !I statementsis su#stituted , en t e first !I statement is read+ since it logicallyincludes t e #ody of t e !I+ , ic is a compound statement& So t e!I inside t e compound statement is really comparing #efore ,it
after , ic ,ill ne er #e eKual& Similarly+ t e follo,ing e1ample,ill not ,or as e1pected:
set <!ST for i in $.% do set <!ST <!ST i ec o <!ST
in t at it ,ill *9T #uild up a list of files in t e current directory+ #ut instead ,ill ;ust set t e <!ST aria#le to t e last file found&Again+ t is is #ecause t e <!ST is e1panded ;ust once , en t eI9R statement is read+ and at t at time t e <!ST aria#le is empty&So t e actual I9R loop ,e are e1ecuting is:
for i in $.% do set <!ST i
, ic ;ust eeps setting <!ST to t e last file found&
Delayed en ironment aria#le e1pansion allo,s you to use a differentc aracter $t e e1clamation mar % to e1pand en ironment aria#les ate1ecution time& !f delayed aria#le e1pansion is ena#led+ t e a#o ee1amples could #e ,ritten as follo,s to ,or as intended:
set AR #efore if AR #efore $ set AR after if V ARV after Yec o !f you see t is+ it ,or ed %
set <!ST for i in $.% do set <!ST V<!STV i
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 114/158
ec o <!ST
!f Command E1tensions are ena#led+ t en t ere are se eral dynamicen ironment aria#les t at can #e e1panded #ut , ic donGt s o, up int e list of aria#les displayed #y SET& T ese aria#le alues are
computed dynamically eac time t e alue of t e aria#le is e1panded&!f t e user e1plicitly defines a aria#le ,it one of t ese names+ t ent at definition ,ill o erride t e dynamic one descri#ed #elo,:
CD - e1pands to t e current directory string&
DATE - e1pands to current date using same format as DATE command&
T!LE - e1pands to current time using same format as T!LE command&
RA*D9L - e1pands to a random decimal num#er #et,een 7 and O6404&
ERR9R<E E< - e1pands to t e current ERR9R<E E< alue
CLDE@T ERS!9* - e1pands to t e current Command "rocessor E1tensions ersion num#er&
CLDCLD<!*E - e1pands to t e original command line t at in o ed t e Command "rocessor&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>setlocal /?
egins localiHation of en ironment c anges in a #atc file& En ironmentc anges made after SET<9CA< as #een issued are local to t e #atc file&E*D<9CA< must #e issued to restore t e pre ious settings& en t e endof a #atc script is reac ed+ an implied E*D<9CA< is e1ecuted for anyoutstanding SET<9CA< commands issued #y t at #atc script&
SET<9CA<
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 115/158
!f Command E1tensions are ena#led SET<9CA< c anges as follo,s:
SET<9CA< #atc command no, accepts optional arguments: E*A <EE@TE*S!9*S / D!SA <EE@TE*S!9*S
ena#le or disa#le command processor e1tensions& See CLD /? for details& E*A <EDE<A EDE@"A*S!9* / D!SA <EDE<A EDE@"A*S!9* ena#le or disa#le delayed en ironment aria#le e1pansion& See SET /? for details&T ese modifications last until t e matc ing E*D<9CA< command+regardless of t eir setting prior to t e SET<9CA< command&
T e SET<9CA< command ,ill set t e ERR9R<E E< alue if gi enan argument& !t ,ill #e Hero if one of t e t,o alid argumentsis gi en and one ot er,ise& ou can use t is in #atc scripts
to determine if t e e1tensions are a aila#le+ using t e follo,ingtec niKue:
ER!I 9TFER 6>nul SET<9CA< E*A <EE@TE*S!9*S !I ERR9R<E E< 2 ec o Bna#le to ena#le e1tensions
T is ,or s #ecause on old ersions of CLD&E@E+ SET<9CA< does *9Tset t e ERR9R<E E< alue& T e ER!I command ,it a #ad argumentinitialiHes t e ERR9R<E E< alue to a non-Hero alue&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>s ift /?C anges t e position of replacea#le parameters in a #atc file&
SF!IT (/n)
!f Command E1tensions are ena#led t e SF!IT command supportst e /n s,itc , ic tells t e command to start s ifting at t ent argument+ , ere n may #e #et,een Hero and eig t& Ior e1ample:
SF!IT /6
,ould s ift O to 6+ P to O+ etc& and lea e 7 and 2 unaffected&
C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 116/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>s utdo,n /?Bsage: s utdo,n (-i = -l = -s = -r = -a) (-f) (-m \\computername) (-t 11) (-c c
omment ) (-d up:11:yy)
*o args Display t is message $same as -?% -i Display JB! interface+ must #e t e first option -l <og off $cannot #e used ,it -m option% -s S utdo,n t e computer -r S utdo,n and restart t e computer -a A#ort a system s utdo,n -m \\computername Remote computer to s utdo,n/restart/a#ort -t 11 Set timeout for s utdo,n to 11 seconds -c comment S utdo,n comment $ma1imum of 264 c aracters%
-f Iorces running applications to close ,it out ,ar ning -d (u)(p):11:yy T e reason code for t e s utdo,n u is t e user code p is a planned s utdo,n code 11 is t e ma;or reason code $positi e integer less t an 630% yy is t e minor reason code $positi e integer less t an 033O0%
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>sort /?S9RT (/R) (/ n) (/L ilo#ytes) (/< locale) (/REC record#ytes) ((dri e2:)(pat 2)filename2) (/T (dri e6:)(pat 6)) (/9 (dri eO:)(pat O)filenameO) / n Specifies t e c aracter num#er+ n+ to #egin eac comparison& / O indicates t at eac comparison s ould #egin at t e Ord c aracter in eac line& <ines ,it fe,er t an n c aracters collate #efore ot er lines& y default comparisons start at t e first c aracter in eac line& /<(9CA<E) locale 9 errides t e system default locale ,it t e specified one& T e C locale yields t e fastest collating seKuence and is currently t e only alternati e& T e sort
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 117/158
is al,ays case insensiti e& /L(EL9R ) ilo#ytes Specifies amount of main memory to use for t e sort+ in ilo#ytes& T e memory siHe is al,ays constrained to #e a minimum of 207 ilo#ytes& !f t e memory siHe is specified
t e e1act amount ,ill #e used for t e sort+ regardless of o, muc main memory is a aila#le&
T e #est performance is usually ac ie ed #y not specifying a memory siHe& y default t e sort ,ill #e done ,it one pass $no temporary file% if it fits in t e default ma1imum memory siHe+ ot er,ise t e sort ,ill #e done in t,o passes $,it t e partially sorted data #eing stored in a temporary file% suc t at
t e amounts of memory used for #ot t e sort and merge passes are eKual& T e default ma1imum memory siHe is 87 of a aila#le main memory if #ot t e input and output are files+ and P3 of main memory ot er,ise& /REC(9RD'LA@!LBL) c aracters Specifies t e ma1imum num#er of c aracters in a record $default P780+ ma1imum 033O3%& /R(E ERSE) Re erses t e sort orderU t at is+ sorts [ to A+ t en 8 to 7& (dri e2:)(pat 2)filename2 Specifies t e file to #e sorted& !f not specified+ t e standard input is sorted& Specifying t e input file is faster t an redirecting t e same file as standard input& /T(EL"9RAR ) (dri e6:)(pat 6) Specifies t e pat of t e directory to old t e sortGs ,or ing storage+ in case t e data does not fit in main memory& T e default is to use t e system temporary directory& /9(BT"BT) (dri eO:)(pat O)filenameO Specifies t e file , ere t e sorted input is to #e stored& !f not specified+ t e data is ,ritten to t e standard output& Specifying t e output file is faster t an redirecting standard output to t e same file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 118/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>start /?Starts a separate ,indo, to run a specified program or command&
START ( title ) (/Dpat ) (/!) (/L!*) (/LA@) (/SE"ARATE = /SFARED) (/<9 = /*9RLA< = /F!JF = /REA<T!LE = /A 9 E*9RLA< =/ E<9 *9RLA<) (/ A!T) (/ ) (command/program) (parameters)
title Title to display in ,indo, title #ar& pat Starting directory Start application ,it out creating a ne, ,indo,& T e application as ZC andling ignored& Bnless t e application ena#les ZC processing+ Z rea is t e only ,ay to interrupt t e application ! T e ne, en ironment ,ill #e t e original en ironment passed to t e cmd&e1e and not t e current en ironment& L!* Start ,indo, minimiHed LA@ Start ,indo, ma1imiHed SE"ARATE Start 20-#it indo,s program in separate memory space SFARED Start 20-#it indo,s program in s ared memory space <9 Start application in t e !D<E priority class *9RLA< Start application in t e *9RLA< priority class F!JF Start application in t e F!JF priority class REA<T!LE Start application in t e REA<T!LE priority class A 9 E*9RLA< Start application in t e A 9 E*9RLA< priority class E<9 *9RLA< Start application in t e E<9 *9RLA< priority class A!T Start application and ,ait for it to terminate command/program !f it is an internal cmd command or a #atc file t en t e command processor is run ,it t e /Q s,itc to cmd&e1e& T is means t at t e ,indo, ,ill remain after t e command as #een run&
!f it is not an internal cmd command or #atc file t en it is a program and ,ill run as eit er a ,indo,ed application or a console application&
parameters T ese are t e parameters passed to t e command/program
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 119/158
!f Command E1tensions are ena#led+ e1ternal command in ocationt roug t e command line or t e START command c anges as follo,s:
non-e1ecuta#le files may #e in o ed t roug t eir file association ;ust #y typing t e name of t e file as a command& $e&g& 9RD&D9C ,ould launc t e application associated ,it t e &D9C file e1tension%& See t e ASS9C and IT "E commands for o, to create t ese associations from ,it in a command script&
en e1ecuting an application t at is a O6-#it JB! application+ CLD&E@E does not ,ait for t e application to terminate #efore returning to t e command prompt& T is ne, #e a ior does *9T occur if e1ecuting ,it in a command script&
en e1ecuting a command line , ose first to en is t e string CLD ,it out an e1tension or pat Kualifier+ t en CLD is replaced ,it t e alue of t e C9LS"EC aria#le& T is pre ents pic ing up CLD&E@E from t e current directory&
en e1ecuting a command line , ose first to en does *9T contain an e1tension+ t en CLD&E@E uses t e alue of t e "ATFE@T en ironment aria#le to determine , ic e1tensions to loo for and in , at order& T e default alue for t e "ATFE@T aria#le is:
&C9LU&E@EU& ATU&CLD
*otice t e synta1 is t e same as t e "ATF aria#le+ ,it semicolons separating t e different elements&
en searc ing for an e1ecuta#le+ if t ere is no matc on any e1tension+t en loo s to see if t e name matc es a directory name& !f it does+ t eSTART command launc es t e E1plorer on t at pat & !f done from t ecommand line+ it is t e eKui alent to doing a CD /D to t at pat &
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>su#st /?Associates a pat ,it a dri e letter&
SB ST (dri e2: (dri e6:)pat )
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 120/158
SB ST dri e2: /D
dri e2: Specifies a irtual dri e to , ic you ,ant to assign a pat & (dri e6:)pat Specifies a p ysical dri e and pat you ,ant to assign to a irtual dri e&
/D Deletes a su#stituted $ irtual% dri e&
Type SB ST ,it no parameters to display a list of current irtual dri es&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>systeminfo /?
S STEL!*I9 (/S system (/B username (/" (pass,ord)))) (/I9 format) (/*F)
Description: T is command line tool ena#les an administrator to Kuery for #asic system configuration information&
"arameter <ist: /S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en user conte1t& "rompts for input if omitted&
/I9 format Specifies t e format in , ic t e output is to #e displayed& alid alues: TA <E + <!ST + CS &
/*F Specifies t at t e Column Feader s ould not #e displayed in t e output& alid only for TA <E and CS formats&
/? Displays t is elp/usage&
E1amples: S STEL!*I9
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 121/158
S STEL!*I9 /? S STEL!*I9 /S system S STEL!*I9 /S system /B user S STEL!*I9 /S system /B domain\user /" pass,ord /I9 TA <E S STEL!*I9 /S system /I9 <!ST
S STEL!*I9 /S system /I9 CS /*F
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>systeminfo
Fost *ame: TETRA-067-A9S *ame: Licrosoft indo,s @" "rofessional9S ersion: 3&2&6077 Ser ice "ac 6 uild 60779S Lanufacturer: Licrosoft Corporation9S Configuration: Standalone or station9S uild Type: Lultiprocessor Iree
Registered 9,ner: <inu1 FierroRegistered 9rganiHation: D"roduct !D: 40P54-9EL-772287O-772769riginal !nstall Date: O/60/6774+ O:35:O4 "LSystem Bp Time: 7 Days+ 3 Fours+ 23 Linutes+ 28 SecondsSystem Lanufacturer: Dell !nc&System Lodel: <atitude D067System type: @50-#ased "C"rocessor$s%: 6 "rocessor$s% !nstalled& (72): 150 Iamily 0 Lodel 23 Stepping 0 Jenuine!ntel 2006 L H (76): 150 Iamily 0 Lodel 23 Stepping 0 Jenuine!ntel 2006 L H
!9S ersion: DE<< - 64d47P7Oindo,s Directory: C:\ !*D9 S
System Directory: C:\ !*D9 S\systemO6oot De ice: \De ice\Farddis olume6
System <ocale: en-usUEnglis $Bnited States%!nput <ocale: en-usUEnglis $Bnited States%Time [one: $JLT 7O:77% Qu,ait+ RiyadTotal " ysical Lemory: 2+72P LA aila#le " ysical Lemory: 206 L
irtual Lemory: La1 SiHe: 6+7P5 Lirtual Lemory: A aila#le: 6+774 Lirtual Lemory: !n Bse: P2 L
"age Iile <ocation$s%: C:\pagefile&sysDomain: 9RQJR9B"<ogon Ser er: \\TETRA-067-AFotfi1$s%: 63O Fotfi1$s% !nstalled& (72): Iile 2
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 122/158
(76): Iile 2 (7O): Iile 2 (7P): Iile 2 (73): Iile 2 (70): Iile 2
(74): Iile 2 (75): Iile 2 (78): Iile 2 (27): Iile 2 (22): Iile 2 (26): Iile 2 (2O): Iile 2 (2P): Iile 2 (23): Iile 2 (20): Iile 2 (24): Iile 2
(25): Iile 2 (28): Iile 2 (67): Iile 2 (62): Iile 2 (66): Iile 2 (6O): Iile 2 (6P): Iile 2 (63): Iile 2 (60): Iile 2 (64): Iile 2 (65): Iile 2 (68): Iile 2 (O7): Iile 2 (O2): Iile 2 (O6): Iile 2 (OO): Iile 2 (OP): Iile 2 (O3): Iile 2 (O0): Iile 2 (O4): Iile 2 (O5): Iile 2 (O8): Iile 2 (P7): Iile 2 (P2): Iile 2 (P6): Iile 2 (PO): Iile 2 (PP): Iile 2 (P3): Iile 2 (P0): Iile 2 (P4): Iile 2
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 123/158
(P5): Iile 2 (P8): Iile 2 (37): Iile 2 (32): Iile 2 (36): Iile 2
(3O): Iile 2 (3P): Iile 2 (33): Iile 2 (30): Iile 2 (34): Iile 2 (35): Iile 2 (38): Iile 2 (07): Iile 2 (02): Iile 2 (06): Iile 2 (0O): Iile 2
(0P): Iile 2 (03): Iile 2 (00): Iile 2 (04): Iile 2 (05): Iile 2 (08): Iile 2 (47): Iile 2 (42): Iile 2 (46): Iile 2 (4O): Iile 2 (4P): Iile 2 (43): Iile 2 (40): Iile 2 (44): Iile 2 (45): Iile 2 (48): Iile 2 (57): Iile 2 (52): Iile 2 (56): Iile 2 (5O): Iile 2 (5P): Iile 2 (53): Iile 2 (50): Iile 2 (54): Iile 2 (55): Iile 2 (58): Iile 2 (87): Iile 2 (82): Iile 2 (86): Iile 2 (8O): Iile 2
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 124/158
(8P): Iile 2 (83): Iile 2 (80): Iile 2 (84): Iile 2 (85): Iile 2
(88): Iile 2 (277): Iile 2 (272): Iile 2 (276): Iile 2 (27O): Iile 2 (27P): Iile 2 (273): Iile 2 (270): Iile 2 (274): Iile 2 (275): Iile 2 (278): Iile 2
(227): Iile 2 (222): Iile 2 (226): Iile 2 (22O): Iile 2 (22P): Iile 2 (223): Iile 2 (220): Iile 2 (224): Iile 2 (225): N2P4666 (228): L865O00 - Bpdate (267): S504P07 - Bpdate (262): Q 82465O - Bpdate (266): Q 866447 - Bpdate (26O): Q 865O03 - Bpdate (26P): N864845 (263): N8O0252 (260): Q 86O46O - Bpdate (264): !D*LitigationA"!s - Bpdate (265): *<SDo,nle elLapping - Bpdate (268): Q 868O88 (2O7): Q 8O0456' L"22 (2O2): Q 8O805O (2O6): Q 863O85' L"0P (2OO): Q 8244OP' L"8 (2OP): Q 86O058 (2O3): Q 865787-!E4 - Bpdate (2O0): Q 868808 - Bpdate (2O4): Q 8O2405-!E4 - Bpdate (2O5): Q 8OO300-!E4 - Bpdate (2O8): Q 8O42PO-!E4 - Bpdate
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 125/158
(2P7): Q 8O5264-!E4 - Bpdate (2P2): Q 8O803O-!E4 - Bpdate (2P6): LSComp"ac 2 - Bpdate (2PO): Q 54OOO8 - Bpdate (2PP): Q 553637 - Bpdate
(2P3): Q 5535O3 - Bpdate (2P0): Q 5535O0 - Bpdate (2P4): Q 553533 - Bpdate (2P5): Q 550253 - Bpdate (2P8): Q 554P46 - Bpdate (237): Q 555O76 - Bpdate (232): Q 55804O - Bpdate (236): Q 587538 - Bpdate (23O): Q 582452 - Bpdate (23P): Q 58O430 - Bpdate (233): Q 58PO82 - Bpdate
(230): Q 580630 - Bpdate (234): Q 580OPP - Bpdate (235): Q 580O35 - Bpdate (238): Q 580P6O - Bpdate (207): Q 580P6P - Bpdate (202): Q 580P65 - Bpdate (206): Q 585P02 - Bpdate (20O): Q 588354 - Bpdate (20P): Q 588355 - Bpdate (203): Q 588382 - Bpdate (200): Q 877P53 - Bpdate (204): Q 877463 - Bpdate (205): Q 872724 - Bpdate (208): Q 872287 - Bpdate (247): Q 87262P - Bpdate (242): Q 876P77 - Bpdate (246): Q 87P470 - Bpdate (24O): Q 87P8P6 - Bpdate (24P): Q 873P2P - Bpdate (243): Q 8734P8 - Bpdate (240): Q 870308 - Bpdate (244): Q 875328 - Bpdate (245): Q 8753O2 - Bpdate (248): Q 87504O - Bpdate (257): Q 878783 - Bpdate (252): Q 827PO4 - Bpdate (256): Q 822657 - Bpdate (25O): Q 822306 - Bpdate (25P): Q 822304 - Bpdate (253): Q 822864 - Bpdate
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 126/158
(250): Q 826828 - Bpdate (254): Q 8268P3 - Bpdate (255): Q 82O357 - Bpdate (258): Q 82PO55 - Bpdate (287): Q 82PO58 - Bpdate
(282): Q 82PPP7 - Bpdate (286): Q 823503 - Bpdate (28O): Q 820383 - Bpdate (28P): Q 824OPP - Bpdate (283): Q 824P66 - Bpdate (280): Q 82483O - Bpdate (284): Q 825225 - Bpdate (285): Q 825PO8 - Bpdate (288): Q 825588 - Bpdate (677): Q 828774 - Bpdate (672): Q 86762O - Bpdate
(676): Q 86762P - Bpdate (67O): Q 867OP6 - Bpdate (67P): Q 867047 - Bpdate (673): Q 86705O - Bpdate (670): Q 867053 - Bpdate (674): Q 867546 - Bpdate (675): Q 862O85 - Bpdate (678): Q 86237O - Bpdate (627): Q 86255O - Bpdate (622): Q 866356 - Bpdate (626): Q 866020 - Bpdate (62O): Q 866528 - Bpdate (62P): Q 86O282 - Bpdate (623): Q 86OP2P - Bpdate (620): Q 86O08P - Bpdate (624): Q 86O857 - Bpdate (625): Q 86P282 - Bpdate (628): Q 86P647 - Bpdate (6
*et or Card$s%: O *!C$s% !nstalled& (72): !ntel$R% "R9/ ireless O8P3A J *et,or Connection Connection *ame: ireless *et,or Connection Status: Ledia disconnected (76): roadcom *et@treme 3411 Jiga#it Controller Connection *ame: <ocal Area Connection DFC" Ena#led: es DFC" Ser er: 286&205&O7&636 !" address$es%
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 127/158
(72): 286&205&O7&2O4 (7O): luetoot "ersonal Area *et,or from T9SF! A Connection *ame: <ocal Area Connection O Status: Ledia disconnected
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>sfc /?
Licrosoft$R% indo,s @" indo,s Iile C ec er ersion 3&2$C% 2888-6777 Licrosoft Corp& All rig ts reser ed
Scans all protected system files and replaces incorrect ersions ,it correct Li
crosoft ersions&SIC (/SCA**9 ) (/SCA*9*CE) (/SCA* 99T) (/RE ERT) (/"BRJECACFE)(/CACFES![E 1)
/SCA**9 Scans all protected system files immediately&/SCA*9*CE Scans all protected system files once at t e ne1t #oot&/SCA* 99T Scans all protected system files at e ery #oot&/RE ERT Return scan to default setting&/"BRJECACFE "urges t e file cac e&/CACFES![E 1 Sets t e file cac e siHe&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>system file c ec er /?GsystemG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>system file c ec er $sfc% /?GsystemG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 128/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>tas ill /?
TASQQ!<< (/S system (/B username (/" (pass,ord)))) (/I! filter) (/"!D processid = /!L imagename) ] (/I) (/T)
Description: T is command line tool can #e used to end one or more processes& "rocesses can #e illed #y t e process id or image name&
"arameter <ist: /S system Specifies t e remote system to connect to&
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en user conte1t& "rompts for input if omitted&
/I Specifies to forcefully terminate process$es%&
/I! filter Displays a set of tas s t at matc a gi en criteria specified #y t e filter&
/"!D process id Specifies t e "!D of t e process t at as to #e terminated&
/!L image name Specifies t e image name of t e process t at as to #e terminated& ildcard G.G can #e used to specify all image names&
/T Tree ill: terminates t e specified process and any c ild processes , ic ,ere started #y it&
/? Displays t is elp/usage&
Iilters: Iilter *ame alid 9perators alid alue$s% ----------- --------------- -------------- STATBS eK+ ne RB**!*J = *9T RES"9*D!*J !LAJE*ALE eK+ ne !mage name
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 129/158
"!D eK+ ne+ gt+ lt+ ge+ le "!D alue SESS!9* eK+ ne+ gt+ lt+ ge+ le Session num#er& C"BT!LE eK+ ne+ gt+ lt+ ge+ le C"B time in t e format of :mm:ss& - ours+
mm - minutes+ ss - seconds LELBSAJE eK+ ne+ gt+ lt+ ge+ le Lemory usage in Q BSER*ALE eK+ ne Bser name in (domain\)user format L9DB<ES eK+ ne D<< name SER !CES eK+ ne Ser ice name !*D9 T!T<E eK+ ne indo, title
*9TE: ildcard G.G for t e /!L s,itc is accepted only ,it filters&
*9TE: Termination of remote processes ,ill al,ays #e done forcefully
irrespecti e of , et er /I option is specified or not&E1amples: TASQQ!<< /S system /I /!L notepad&e1e /T TASQQ!<< /"!D 26O7 /"!D 26P2 /"!D 263O /T TASQQ!<< /I /!L notepad&e1e /!L mspaint&e1e TASQQ!<< /I /I! "!D ge 2777 /I! !*D9 T!T<E ne untitle. TASQQ!<< /I /I! BSER*ALE eK *T ABTF9R!T \S STEL /!L notepad&e1e TASQQ!<< /S system /B domain\username /I! BSER*ALE ne *T. /!L . TASQQ!<< /S system /B username /" pass,ord /I! !LAJE*ALE eK note.
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>tas list /?
TASQ<!ST (/S system (/B username (/" (pass,ord)))) (/L (module) = /S C = / ) (/I! filter) (/I9 format) (/*F)
Description: T is command line tool displays a list of application$s% and associated tas $s%/process$es% currently running on eit er a local or remote system&
"arameter <ist: /S system Specifies t e remote system to connect to&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 130/158
/B (domain\)user Specifies t e user conte1t under , ic t e command s ould e1ecute&
/" (pass,ord) Specifies t e pass,ord for t e gi en
user conte1t& "rompts for input if omitted&
/L (module) <ists all tas s t at a e D<< modules loaded in t em t at matc t e gi en pattern name& !f t e module name is not specified+ displays all modules loaded #y eac tas &
/S C Displays ser ices in eac process&
/ Specifies t at t e er#ose information is to #e displayed&
/I! filter Displays a set of tas s t at matc a gi en criteria specified #y t e filter&
/I9 format Specifies t e output format& alid alues: TA <E + <!ST + CS &
/*F Specifies t at t e Column Feader s ould not #e displayed in t e output& alid only for TA <E and CS formats&
/? Displays t is elp/usage&
Iilters: Iilter *ame alid 9perators alid alue$s% ----------- --------------- -------------- STATBS eK+ ne RB**!*J = *9T RES"9*D!*J !LAJE*ALE eK+ ne !mage name "!D eK+ ne+ gt+ lt+ ge+ le "!D alue SESS!9* eK+ ne+ gt+ lt+ ge+ le Session num#er SESS!9**ALE eK+ ne Session name C"BT!LE eK+ ne+ gt+ lt+ ge+ le C"B time in t e format of :mm:ss& - ours+ mm - minutes+ ss - seconds LELBSAJE eK+ ne+ gt+ lt+ ge+ le Lemory usage in Q BSER*ALE eK+ ne Bser name in (domain\)user format SER !CES eK+ ne Ser ice name !*D9 T!T<E eK+ ne indo, title
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 131/158
L9DB<ES eK+ ne D<< name
E1amples: TASQ<!ST TASQ<!ST /L
TASQ<!ST / TASQ<!ST /S C TASQ<!ST /L ,#em. TASQ<!ST /S system /I9 <!ST TASQ<!ST /S system /B domain\username /I9 CS /*F TASQ<!ST /S system /B username /" pass,ord /I9 TA <E /*F TASQ<!ST /I! BSER*ALE ne *T ABTF9R!T \S STEL /I! STATBS eKrunning
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>tcmsetup /?
C:\D9CBLE 2\TETRA-A> A dialoag #o1 appears t at ser es as t e elp #o1& !t tells a#out t e definition of t e command and t e ot er parameters included int t ee1ecution of t e command&GAG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>tcp/ip utilities and ser icesGtcpG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 132/158
TCP/IP utilities and ser icesTC"/!" utilities offer net,or connections to ot er computers+ suc as B*!@,or stations& ou must a e t e TC"/!" net,or protocol installed to use t e TC"/!"
utilities& Ior information a#out starting TC"/!" ser ices from t e command prompt+ see *et start & Ior information a#out stopping TC"/!" ser ices from t e command prompt+ see *et stop &
Ior more information+ clic a utility or ser ice:
• Arp• *sloo up• Iinger• "ing• Itp•
Rcp• Fostname• Re1ec• !pconfig• Route• <pK• Rs• <pr• Tftp• *#tstat• Tracert• *etstat
C:\D9CBLE 2\TETRA-A>tcp/ipGtcpG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>tcp/ip utilities /?GtcpG is not recogniHed as an internal or e1ternal command+
opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>tcp/ip /?GtcpG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 133/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>telnet /?
telnet (-a)(-e escape c ar)(-f log file)(-l user)(-t term)( ost (port)) -a Attempt automatic logon& Same as -l option e1cept uses
t e currently logged on userGs name& -e Escape c aracter to enter telnet client prompt& -f Iile name for client side logging -l Specifies t e user name to log in ,it on t e remote system& ReKuires t at t e remote system support t e TE<*ET E* !R9* option& -t Specifies terminal type& Supported term types are t277+ t36+ ansi and tnt only& ost Specifies t e ostname or !" address of t e remote computer to connect to& port Specifies a port num#er or ser ice name&
Telnet commandsT e telnet commands allo, you to communicate ,it a remote computer t at is using t eTelnet protocol& ou can run telnet ,it out parameters in order to enter t e telnetconte1t+ indicated #y t e Telnet prompt $ telnet %& Irom t e Telnet prompt+ use t efollo,ing commands to manage a computer running Telnet Client&
T e tlntadmn commands allo, you to remotely manage a computer running TelnetSer er& T ese commands are run from t e command prompt& Bsed ,it out parameters+tlntadmn displays local ser er settings&
To use telnet commands at t e Telnet prompt
To start Telnet Client and to enter t e Telnet prompt
Syntax
telnet ( #emoteServer )
Parameters #emoteServer
Specifies t e name of t e ser er to , ic you ,ant to connect&/?
Displays elp at t e command prompt&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 134/158
Remarks• Bsed ,it out parameters+ telnet starts Telnet Client&• en you are at t e Telnet prompt+ you must use Telnet commands&
To stop Telnet Client
Syntax
*uit
Parameters
none
Remarks•
ou can a##re iate t is command to *&
To connect Telnet Client to a remote computer
Syntax
o en ( #emoteServer ) ( !ort )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
!ort Specifies t e port t at you ,ant to use& !f you do not specify a port+ t e default
port is assumed&
Remarks• ou can a##re iate t is command to o&
Examples
To connect to remote ser er Redmond t roug port num#er PP+ type:o redmond 00
To disconnect Telnet Client from a remote computer
Syntax
close ( #emoteServer )
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 135/158
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
Remarks• ou can a##re iate t is command to c&
Examples
To disconnect from remote ser er Redmond+ type:c redmond 00
To set Telnet Client options
Syntax
set ( #emoteServer ) (ntlm ) (localec#o ) (term ansi = t1,, = t 2 = tnt ]) ( esca e Character ) (logfile File%ame ) (logging ) (!sasdel ) (crlf ) (delas!s ) (mode console =stream ]) ( ? )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
ntlm
Turns on *T<L aut entication if it is a aila#le on t e remote ser er&localec#o
Turns on local ec o&term ansi = t1,, = t 2 = tnt ]
Sets t e terminal to t e specified type&esca e Character
Sets t e escape c aracter& T e escape c aracter can #e a single c aracter+ or it can #e a com#ination of t e CTR< ey plus a c aracter& To set a control- eycom#ination+ old do,n CTR< , ile you type t e c aracter t at you ,ant toassign&
logfile File%ame
Sets t e file to #e used for logging Telnet acti ity& T e log file must #e on yourlocal computer& <ogging #egins automatically , en you set t is option&logging
Turns on logging& !f no log file is set+ an error message appears&!sasdel
Sets ACQS"ACE to #e sent as delete&crlf
Sets t e ne, line mode+ , ic causes t e E*TER ey to send 717D+ 717A&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 136/158
delas!s Sets DE<ETE to #e sent as #ac space&
mode console =stream ]Sets t e mode of operation&
?
Allo,s you to ie, t e complete synta1 for t is command&Remarks
• To turn off an option t at ,as pre iously set+ at t e Telnet prompt+ type:
unset ()ption )
• To set t e escape c aracter+ type:
3e Character
• 9n non-Englis ersions of Telnet+ t e codeset )ption is a aila#le&Codeset )ption sets t e current code set to an option+ , ic can #e any one of t efollo,ing: 4#ift 5I4 +5a anese '6C +5I4 7an8i9 5I4 7an8i (:;) + 'C 7an8i +$'C 7an8i & ou s ould set t e same code set on t e remote computer&
To send Telnet Client commands
Syntax
send ( #emoteServer ) (ao ) (a t ) (esc ) (i ) (s nc# ) (? )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
ao A#orts output command&
a t Sends an Are you t ere? command&
esc Sends t e current escape c aracter&
i !nterrupts t e process command&
s nc# "erforms t e Telnet sync operation&
? Allo,s you to ie, t e complete synta1 for t is command&
To ie, t e current settings for t e Telnet client
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 137/158
Syntax dis la
Parameters
none
Remarks• T e display command lists t e currently operating parameters for t e Telnet
client& !f you are in a Telnet session $in ot er ,ords+ if you are connected to aTelnet ser er%+ you can e1it t e Telnet session to modify t e parameters #y
pressing CTR< )& To return to t e Telnet session+ press E*TER&
To use tlntadmn commands at t e command prompt
To administer a computer running Telnet Ser er
Syntax
tlntadmn ( #emoteServer ) (start ) (sto ) ( ause ) (continue )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
start
Starts Telnet Ser er&sto Stops Telnet Ser er&
ause !nterrupts Telnet Ser er&
continue Resumes Telnet Ser er&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can notuse t e tlntadmn commands to remotely administer a computer running
indo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
To administer Telnet sessions
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 138/158
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 139/158
Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can not
use t e tlntadmn commands to remotely administer a computer runningindo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
• !f you specify , ere to send e ent information ,it out specifying , ic type ortypes of information to audit+ only information a#out administrati e logon e ents,ill #e audited and sent to t e location t at you specified&
Examples
To send e ent information to E ent ie,er+ type:
tlntadmn config auditlocation+e entlog
To audit administrati e logon e ents and failed logon attempts+ type:
tlntadmn config audit+=admin =fail
To set t e default domain on a computer running Telnet Ser er
Syntax
tlntadmn ( #emoteServer ) config (dom+ $omain%ame )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
dom+ $omain%ame Specifies t e domain t at you ,ant to ma e t e default domain&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can notuse t e tlntadmn commands to remotely administer a computer running
indo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
Examples
To ma e Redmond t e default domain on your local ser er+ type:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 140/158
tlntadmn config dom+>edmond
To map t e Alt ey on a computer running Telnet Ser er
Syntax
tlntadmn ( #emoteServer ) config (ctrla%e ma + es =no ])
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
ctrla%e ma + es =no ]Specifies , et er you ,ant Telnet Ser er to interpret CTR< A as A<T& Type esto map t e s ortcut ey+ or type no to pre ent mapping&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can notuse t e tlntadmn commands to remotely administer a computer running
indo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&• !f you do not map t e A<T ey+ Telnet Ser er does not send t e A<T ey to
applications t at mig t rely on t at ey&
To set t e ma1imum num#er of connections on a computer running Telnet Ser er
Syntax
tlntadmn ( #emoteServer ) config (ma&conn+ !ositiveInte*er )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
ma&conn+ !ositiveInte*er
Sets t e ma1imum num#er of connections& ou must specify t is num#er ,it a positi e integer t at is smaller t an 27 million&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can not
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 141/158
use t e tlntadmn commands to remotely administer a computer runningindo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
To set t e ma1imum num#er of failed logon attempts on a computer running TelnetSer er
Syntax
tlntadmn ( #emoteServer ) config (ma&fail+ !ositiveInte*er )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
ma&fail+ !ositiveInte*er Sets t e ma1imum num#er of failed logon attempts t at a user is allo,ed& oumust specify t is num#er ,it a positi e integer t at is smaller t an 277&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can notuse t e tlntadmn commands to remotely administer a computer running
indo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
To set t e mode of operation on a computer running Telnet Ser er
Syntax
tlntadmn ( #emoteServer ) config (mode+ console =stream ])
Parameters #emoteServer
Specifies t e name for t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
mode+ console =stream ]
Specifies t e mode of operation&/?
Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can not
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 142/158
use t e tlntadmn commands to remotely administer a computer runningindo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
To set t e Telnet port on a computer running Telnet Ser er
Syntax tlntadmn ( #emoteServer ) config ( ort+ Inte*er+alue )
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
ort+ Inte*er+alue Sets t e Telnet port& ou must specify t e port ,it an integer smaller t an 2+76P&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can notuse t e tlntadmn commands to remotely administer a computer running
indo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
To set t e met ods of aut entication on a computer running Telnet Ser er
Syntax tlntadmn ( #emoteServer ) config (sec+ ( = =-] ntlm )( = =-] ass d ))
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
sec+ ( = =-] ntlm )( = =-] ass d )Specifies , et er you ,ant to use *T<L+ a pass,ord+ or #ot to aut enticatelogon attempts& To use a particular type of aut entication+ type a plus sign $ %
#efore t at type of aut entication& To pre ent using a particular type ofaut entication+ type a minus sign $-% #efore t at type of aut entication&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can not
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 143/158
use t e tlntadmn commands to remotely administer a computer runningindo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
• *T<L is t e aut entication protocol for transactions #et,een t,o computers, ere one or #ot computers is running indo,s *T P&7 or an earlier ersion& !naddition+ *T<L is t e aut entication protocol for computers t at are not
participating in a domain+ suc as stand-alone ser ers and ,or groups&
To set t e time-out for idle sessions on a computer running Telnet Ser er
Syntax
tlntadmn ( #emoteServer ) config (timeout+ hh mm ss)
Parameters #emoteServer
Specifies t e name of t e ser er t at you ,ant to manage& !f you do not specify aser er+ t e local ser er is assumed&
timeout+ hh mm ss Sets t e time-out period in ours+ minutes+ and seconds&
/? Displays elp at t e command prompt&
Remarks• ou can remotely administer a computer running Telnet Ser er using t e
tlntadmn commands if #ot computers are running indo,s @"& ou can notuse t e tlntadmn commands to remotely administer a computer running
indo,s 6777 and Telnet Ser er from a computer t at is running indo,s @"&
Remarks• To s,itc from Telnet Client to command mode+ at t e Telnet prompt+ press
CTR< )& To s,itc #ac to Telnet Client+ press E*TER&
Formatting legend Format Meaning
Italic !nformation t at t e user must supply
BoldElements t at t e user must type e1actlyas s o,n
Ellipsis $&&&% "arameter t at can #e repeated se eraltimes in a command line
et,een #rac ets $()% 9ptional itemset,een #races $ ]%U c oices separated #y pipe
$=%& E1ample: e en=odd]Set of c oices from , ic t e user mustc oose only one
Courier font Code or program output
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 144/158
Related Topics
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>terminal ser ice commandsGterminalG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
Terminal 4er ices commandsIor more information+ clic a command:
• c ange logon• c ange port• c ange user• cprofile• flattemp• logoff• msg• mstsc• Kuery process• Kuery session• Kuery termser er• Kuery user• register• reset session•
s ado,• tscon• tsdiscon• ts ill• tsprof• tss utdn
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 145/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>tftp /?
Transfers files to and from a remote computer running t e TIT" ser ice&
TIT" (-i) ost (JET = "BT) source (destination)
-i Specifies #inary image transfer mode $also called octet%& !n #inary image mode t e file is mo ed literally+ #yte #y #yte& Bse t is mode , en transferring #inary files& ost Specifies t e local or remote ost& JET Transfers t e file destination on t e remote ost to
t e file source on t e local ost& "BT Transfers t e file source on t e local ost to t e file destination on t e remote ost& source Specifies t e file to transfer& destination Specifies , ere to transfer t e file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>time /?Displays or sets t e system time&
T!LE (/T = time)
Type T!LE ,it no parameters to display t e current time setting and a promptfor a ne, one& "ress E*TER to eep t e same time&
!f Command E1tensions are ena#led t e T!LE command supportst e /T s,itc , ic tells t e command to ;ust output t ecurrent time+ ,it out prompting for a ne, time&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>timeT e current time is: 26:O5:67&O2Enter t e ne, time:
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 146/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>title /?Sets t e ,indo, title for t e command prompt ,indo,&
T!T<E (string)
string Specifies t e title for t e command prompt ,indo,&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>tracerpt /?
Licrosoft r TraceRpt&E1e $3&2&6077&6257%c Licrosoft Corporation& All rig ts reser ed&
Tracerpt processes #inary E ent Trace Session log files or real-time streamsfrom instrumented E ent Trace pro iders and creates a report or a te1t $CS %file descri#ing t e e ents generated&
Bsage:tracerpt Xfilename (filename &&&)> = -rt Xsession'name (session'name &&&)> ] (options)
"arameters: Xfilename (filename &&&)> E ent Trace log file to process&
9ptions: -? Displays conte1t sensiti e elp& -o (filename) Te1t $CS % output file& Default is dumpfile&cs & -summary (filename) Summary report te1t file $CS % file& Default is summary&t1t& -report (filename) Te1t output report file& Default is ,or load&t1t& -rt Xsession'name (session'name &&&)> Real-time E ent Trace Session data source& -config Xfilename> Settings file containing command options& -y Ans,er yes to all Kuestions ,it out prompting&
E1amples: tracerpt logfile2&etl logfile6&etl -o -report tracerpt logfile&etl -o logdmp&cs -summary logdmp&t1t -report logrpt&t1t tracerpt -rt E E*T'SESS!9*'2 E E*T'SESS!9*'6 -o logfile&cs
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 147/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>tracert /?
Bsage: tracert (-d) (- ma1imum' ops) (-; ost-list) (-, timeout) target'name
9ptions:
-d Do not resol e addresses to ostnames& - ma1imum' ops La1imum num#er of ops to searc for target& -; ost-list <oose source route along ost-list& -, timeout ait timeout milliseconds for eac reply&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>tree /?Jrap ically displays t e folder structure of a dri e or pat &
TREE (dri e:)(pat ) (/I) (/A)
/I Display t e names of t e files in eac folder& /A Bse ASC!! instead of e1tended c aracters&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>type /?Displays t e contents of a te1t file or files&
T "E (dri e:)(pat )filename
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 148/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>typeperf /?
Licrosoft r Type"erf&e1e $3&2&6077&7%c Licrosoft Corporation& All rig ts reser ed&
Typeperf ,rites performance data to t e command ,indo, or to a log file& Tostop Typeperf+ press CTR< C&
Bsage:typeperf Xcounter (counter &&&)> = -cf Xfilename> = -K (o#;ect) = -K1 (o#;ect) ] (options)
"arameters: Xcounter (counter &&&)> "erformance counters to monitor&
9ptions: -? Displays conte1t sensiti e elp& -f XCS =TS = !*=SN<> 9utput file format& Default is CS & -cf Xfilename> Iile containing performance counters to monitor+ one per line& -si X(( :)mm:)ss> Time #et,een samples& Default is 2 second& -o Xfilename> "at of output file or SN< data#ase& Default is STD9BT& -K (o#;ect) <ist installed counters $no instances%& To list counters for one o#;ect+ include t e o#;ect name+ suc as "rocessor& -K1 (o#;ect) <ist installed counters ,it instances& To list counters for one o#;ect+ include t e o#;ect name+ suc as "rocessor& -sc Xsamples> *um#er of samples to collect& Default is to sample until CTR< C& -config Xfilename> Settings file containing command options& -s Xcomputer'name> Ser er to monitor if no ser er is specified in t e counter pat & -y Ans,er yes to all Kuestions ,it out prompting&
*ote: Counter is t e full name of a performance counter in \\XComputer>\X9#;ect>$X!nstance>%\XCounter> format+ suc as \\Ser er2\"rocessor$7%\ Bser Time &
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 149/158
E1amples: typeperf \"rocessor$'Total%\ "rocessor Time typeperf -cf counters&t1t -si 3 -sc 37 -f TS -o domain6&ts typeperf -K1 " ysicalDis -o counters&t1t
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>unlodctr /?
B*<9DCTR Remo es counter names and e1plain te1t for t e specified e1tensi#le counter&
Bsage:
B*<9DCTR (\\computername) dri er
computername is t e name of t e remote computer& <ocal mac ine is used if computername is not specified&
dri er is t e name of t e de ice dri er , ic is to a e its counter name definitions and e1plain te1t remo ed from t e systemGs registry&
*ote: any arguments ,it spaces in t e names must #e enclosed ,it inDou#le Nuotation mar s&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> er /?Displays t e indo,s @" ersion&
ER
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 150/158
C:\D9CBLE 2\TETRA-A> er
Licrosoft indo,s @" ( ersion 3&2&6077)
C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> erify /?Tells cmd&e1e , et er to erify t at your files are ,ritten correctly to adis &
ER!I (9* = 9II)
Type ER!I ,it out a parameter to display t e current ER!I setting&
C:\D9CBLE 2\TETRA-A> erifyER!I is off&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> ol /?Displays t e dis olume la#el and serial num#er+ if t ey e1ist&
9< (dri e:)
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A> ssadmin /?
ssadmin 2&7 - olume S ado, Copy Ser ice administrati e command-line tool$C% Copyrig t 6772 Licrosoft Corp&
Bsage:
ssadmin list s ado,s (/set s ado, copy set guid]) <ists all s ado, copies in t e system+ grouped #y s ado, copy set !d&
ssadmin list ,riters <ists all ,riters in t e system
ssadmin list pro iders <ists all currently installed s ado, copy pro iders
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 151/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>,O6tm /?,O6tm (/? = /register = /unregister ) ? - t is elp screen& register - register to run as a ser ice and add default configuration to t e registry& unregister - unregister ser ice and remo e all configuration information from t e registry&
,O6tm /monitor (/domain:Xdomain name>) (/computers:Xname>(+Xname>(+Xname>&&&))) (/t reads:Xnum>) domain - specifies , ic domain to monitor& !f no domain name is gi en+ or neit er t e domain nor computers option is specified+ t e default domain is used& T is option may #e used more t an once& computers - monitors t e gi en list of computers& Computer names are separated #y commas+ ,it no spaces& !f a name is prefi1ed ,it a G.G+ it is treated as a "DC& T is option may #e used more t an once& t reads - o, many computers to analyHe simultaneously& T e default alue is O& Allo,ed range is 2-37&
,O6tm /ntte X*T time epoc > Con ert a *T system time+ in $27Z-4%s inter als from 7 2-_an 2072+ into a reada#le format&
,O6tm /ntpte X*T" time epoc > Con ert an *T" time+ in $6Z-O6%s inter als from 7 2-_an 2877+ into a reada#le format&
,O6tm /resync (/computer:Xcomputer>) (/no,ait) (/redisco er) (/soft) Tell a computer t at it s ould resync roniHe its cloc as soon as possi#le+ t ro,ing out all accumulated error statistics& computer:Xcomputer> - computer t at s ould resync& !f not specified+ t e local computer ,ill resync& no,ait - do not ,ait for t e resync to occurU return immediately& 9t er,ise+ ,ait for t e resync to
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 152/158
complete #efore returning& redisco er - redetect t e net,or configuration and redisco er net,or sources+ t en resync roniHe& soft - resync utiliHing e1isting error statistics& *ot useful+ pro ided for compati#ility&
,O6tm /stripc art /computer:Xtarget> (/period:Xrefres >) (/dataonly) (/samples:Xcount>) Display a strip c art of t e offset #et,een t is computer and anot er computer& computer:Xtarget> - t e computer to measure t e offset against& period:Xrefres > - t e time #et,een samples+ in seconds& T e default is 6s dataonly - display only t e data+ no grap ics& samples:Xcount> - collect Xcount> samples+ t en stop& !f not specified+ samples ,ill #e collected until Ctrl-C is pressed&
,O6tm /config (/computer:Xtarget>) (/update) (/manualpeerlist:Xpeers>) (/syncfromflags:Xsource>) (/<ocalCloc Dispersion:Xseconds>) computer:Xtarget> - ad;usts t e configuration of Xtarget>& !f not specified+ t e default is t e local computer& update - notifies t e time ser ice t at t e configuration as c anged+ causing t e c anges to ta e effect& manualpeerlist:Xpeers> - sets t e manual peer list to Xpeers>+ , ic is a space-delimited list of D*S and/or !" addresses& en specifying multiple peers+ t is s,itc must #e enclosed in Kuotes& syncfromflags:Xsource> - sets , at sources t e *T" client s ould sync from& Xsource> s ould #e a comma separated list of t ese ey,ords $not case sensiti e%: LA*BA< - include peers from t e manual peer list D9LF!ER - sync from a DC in t e domain ierarc y
,O6tm /tH Display t e current time Hone settings&
,O6tm /dumpreg (/su# ey:X ey>) (/computer:Xtarget>) Display t e alues associated ,it a gi en registry ey& T e default ey is FQ<L\System\CurrentControlSet\Ser ices\ O6Time $t e root ey for t e time ser ice%& su# ey:X ey> - displays t e alues associated ,it su# ey X ey> of t e default ey& computer:Xtarget> - Kueries registry settings for computer Xtarget>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 153/158
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>,innt /?G,inntG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>,innt
G,inntG is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>,inntO6 /?G,inntO6G is not recogniHed as an internal or e1ternal command+opera#le program or #atc file&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>,mic /?
(glo#al s,itc es) Xcommand>
T e follo,ing glo#al s,itc es are a aila#le:/*ALES"ACE "at for t e namespace t e alias operate against&/R9<E "at for t e role containing t e alias definitions&/*9DE Ser ers t e alias ,ill operate against&/!L"<E E< Client impersonation le el&/ABTF<E E< Client aut entication le el&/<9CA<E <anguage id t e client s ould use&/"R! !<EJES Ena#le or disa#le all pri ileges&/TRACE 9utputs de#ugging information to stderr&/REC9RD <ogs all input commands and output&/!*TERACT! E Sets or resets t e interacti e mode&/IA!<IAST Sets or resets t e IailIast mode&/BSER Bser to #e used during t e session&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 154/158
/"ASS 9RD "ass,ord to #e used for session login&/9BT"BT Specifies t e mode for output redirection&/A""E*D Specifies t e mode for output redirection&/AJJREJATE Sets or resets aggregate mode&/ABTF9R!T Specifies t e Xaut ority type> for t e connection&
/?(:X R!EI=IB<<>) Bsage information&
Ior more information on a specific glo#al s,itc + type: s,itc -name /?
T e follo,ing alias/es are a aila#le in t e current role:A<!AS - Access to t e aliases a aila#le on t e local system
ASE 9ARD - ase #oard $also no,n as a mot er#oard or system #oard% management&
!9S - asic input/output ser ices $ !9S% management&99TC9*I!J - oot configuration management&
CDR9L - CD-R9L management&C9L"BTERS STEL - Computer system management&C"B - C"B management&CS"R9DBCT - Computer system product information from SL !9S&DATAI!<E - DataIile Lanagement&DC9LA"" - DC9L Application management&DESQT9" - BserGs Des top management&DESQT9"L9*!T9R - Des top Lonitor management&DE !CELEL9R ADDRESS - De ice memory addresses management&D!SQDR! E - " ysical dis dri e management&D!SQNB9TA - Dis space usage for *TIS olumes&DLACFA**E< - Direct memory access $DLA% c annel management&E* !R9*LE*T - System en ironment settings management&ISD!R - Iilesystem directory entry management&JR9B" - Jroup account management&!DEC9*TR9<<ER - !DE Controller management&!RN - !nterrupt reKuest line $!RN% management&_9 - "ro ides access to t e ;o#s sc eduled using t e sc edule ser ice&<9AD9RDER - Lanagement of system ser ices t at define e1ecution dependencies&<9J!CA<D!SQ - <ocal storage de ice management&<9J9* - <9J9* Sessions&LELCACFE - Cac e memory management&LEL<9J!CA< - System memory management $configuration layout and aaila#ility of memory%&LEL"F S!CA< - Computer systemGs p ysical memory management&
*ETC<!E*T - *et,or Client management& *ET<9J!* - *et,or login information $of a particular user% management&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 155/158
*ET"R9T9C9< - "rotocols $and t eir net,or c aracteristics% management&
*ETBSE - Acti e net,or connection management& *!C - *et,or !nterface Controller $*!C% management& *!CC9*I!J - *et,or adapter management&
*TD9LA!* - *T Domain management& *TE E*T - Entries in t e *T E ent <og& *TE E*T<9J - *T e entlog file management&9* 9ARDDE !CE - Lanagement of common adapter de ices #uilt into t e mot er#oard $system #oard%&9S - !nstalled 9perating System/s management&"AJEI!<E - irtual memory file s,apping management&"AJEI!<ESET - "age file settings management&"ART!T!9* - Lanagement of partitioned areas of a p ysical dis &"9RT - !/9 port management&"9RTC9**ECT9R - " ysical connection ports management&
"R!*TER - "rinter de ice management&"R!*TERC9*I!J - "rinter de ice configuration management&"R!*T_9 - "rint ;o# management&"R9CESS - "rocess management&"R9DBCT - !nstallation pac age tas management&NIE - Nuic Ii1 Engineering&NB9TASETT!*J - Setting information for dis Kuotas on a olume&REC9 ER9S - !nformation t at ,ill #e gat ered from memory , en te operating system fails&REJ!STR - Computer system registry management&SCS!C9*TR9<<ER - SCS! Controller management&SER ER - Ser er information management&SER !CE - Ser ice application management&SFARE - S ared resource management&S9IT AREE<ELE*T - Lanagement of t e elements of a soft,are product installed on a system&S9IT AREIEATBRE - Lanagement of soft,are product su#sets of Soft,areElement&S9B*DDE - Sound De ice management&STARTB" - Lanagement of commands t at run automatically , en users log onto t e computer system&S SACC9B*T - System account management&S SDR! ER - Lanagement of t e system dri er for a #ase ser ice&S STELE*C<9SBRE - " ysical system enclosure management&S STELS<9T - Lanagement of p ysical connection points including ports+ slots and perip erals+ and proprietary connections points&TA"EDR! E - Tape dri e management&TEL"ERATBRE - Data management of a temperature sensor $electronic t
ermometer%&T!LE[9*E - Time Hone data management&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 156/158
B"S - Bninterrupti#le po,er supply $B"S% management&BSERACC9B*T - Bser account management&
9<TAJE - oltage sensor $electronic oltmeter% data management&
9<BLENB9TASETT!*J - Associates t e dis Kuota setting ,it a specific dis
olume&L!SET - L! ser ice operational parameters management&
Ior more information on a specific alias+ type: alias /?
C<ASS - Escapes to full L! sc ema&"ATF - Escapes to full L! o#;ect pat s&C9*TE@T - Displays t e state of all t e glo#al s,itc es&NB!T/E@!T - E1its t e program&
Ior more information on C<ASS/"ATF/C9*TE@T+ type: $C<ASS = "ATF =
C9*TE@T% /?
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>1copy /?Copies files and directory trees&
@C9" source (destination) (/A = /L) (/D(:date)) (/") (/S (/E)) (/ ) (/ ) (/C) (/!) (/N) (/I) (/<) (/J) (/F) (/R) (/T) (/B) (/Q) (/*) (/9) (/@) (/ ) (/- ) (/[) (/E@C<BDE:file2( file6)( fileO)&&&)
source Specifies t e file$s% to copy& destination Specifies t e location and/or name of ne, files& /A Copies only files ,it t e arc i e attri#ute set+ doesnGt c ange t e attri#ute& /L Copies only files ,it t e arc i e attri#ute set+ turns off t e arc i e attri#ute& /D:m-d-y Copies files c anged on or after t e specified date& !f no date is gi en+ copies only t ose files , ose source time is ne,er t an t e destination time&
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 157/158
/E@C<BDE:file2( file6)( fileO)&&& Specifies a list of files containing strings& Eac string s ould #e in a separate line in t e files& en any of t e strings matc any part of t e a#solute pat of t e file to #e copied+ t at file ,ill #e e1cluded from #eing copied& Ior
e1ample+ specifying a string li e \o#;\ or &o#; ,ill e1clude all files underneat t e directory o#; or all files ,it t e &o#; e1tension respecti ely& /" "rompts you #efore creating eac destination file& /S Copies directories and su#directories e1cept empty ones& /E Copies directories and su#directories+ including empty ones& Same as /S /E& Lay #e used to modify /T& / erifies eac ne, file& / "rompts you to press a ey #efore copying& /C Continues copying e en if errors occur& /! !f destination does not e1ist and copying more t an one file+
assumes t at destination must #e a directory& /N Does not display file names , ile copying& /I Displays full source and destination file names , ile copying& /< Displays files t at ,ould #e copied& /J Allo,s t e copying of encrypted files to destination t at does not support encryption& /F Copies idden and system files also& /R 9 er,rites read-only files& /T Creates directory structure+ #ut does not copy files& Does not include empty directories or su#directories& /T /E includes empty directories and su#directories& /B Copies only files t at already e1ist in destination& /Q Copies attri#utes& *ormal @copy ,ill reset read-only attri#utes& /* Copies using t e generated s ort names& /9 Copies file o,ners ip and AC< information& /@ Copies file audit settings $implies /9%& / Suppresses prompting to confirm you ,ant to o er,rite an e1isting destination file& /- Causes prompting to confirm you ,ant to o er,rite an e1isting destination file& /[ Copies net,or ed files in restarta#le mode&
T e s,itc / may #e preset in t e C9" CLD en ironment aria#le&T is may #e o erridden ,it /- on t e command line&
C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>C:\D9CBLE 2\TETRA-A>
8/13/2019 DOS Command-line Refc
http://slidepdf.com/reader/full/dos-command-line-refc 158/158
C:\D9CBLE 2\TETRA-A>