“I either want less corruption, or more chance to participate in it” ~ Ashleigh Brilliant
CHKNTFS.exe
Check
the NTFS file system with
CHKDSK
Syntax
CHKNTFS
drive: [...]
CHKNTFS /C
drive: [...]
CHKNTFS /X
drive: [...]
CHKNTFS /t[:
Time]
CHKNTFS /D
Key
drive : Specifies a drive letter.
/C : Check - schedules chkdsk to be run at the next reboot.
/X : Exclude a drive from the default boot-time check.
Excluded drives are not accumulated between command
invocations.
/T : Change the Autochk.exe initiation countdown time (time in
seconds)
If you don’t specify Time: displays the current countdown time.
/D : Restore the machine
to the default behavior; all drives are
checked at boot time and chkdsk is run on those that are dirty.
This undoes the effect of the /X option.
If no switches are specified, CHKNTFS will display the status of the dirty bit for each drive.
“I don‟t make no dirty movements” ~ Elvis
CHOICE.exe
Accept user input to a batch file. Choice allows single key-presses to be captured from the
keyboard.
CHOICE [/c [choiceKeys]] [/N] [/CS] [/t
Timeout /d
Choice] [/m
Text]
key
/C[:]
choiceKeys : One or more keys the user can press.
Default is
YN.
/N : Do not display
choiceKeys at
the end of the prompt
string.
/CS : Make the
choiceKeys Case Sensitive.
/T
Timeout : Timeout in
Timeout seconds
If
Timeout is 0 there will be no pause and the
default will be selected.
/d
choice : Default choice made on Timeout.
/m
text : Message string to describe the choices available.
ERRORLEVEL
will return the numerical offset of choiceKeys.
Choice.exe is a standard command in Windows 2003, Vista and Windows 7 (for XP you can use
the early resource kit versions).
Chia sẻ với bạn bè của bạn: