ww111222
中级用户
积分 354
发帖 83
注册 2003-3-23
状态 离线
|
『楼 主』:
我看到有批处理里有get这个命令,帮我看看它的帮助好吗?
看不明白
GET Version 2.4 - BATch File Enhancer - Copyright 1991 Bob Stephan
Syntax: GET command argument(s) /switches More Instructions: GET.DOC
Purpose Command Argument(s) Environment ErrorLevel Extended
--------- ------- ----------- --(GET=)--- --(Exit)-- --[E]---
--------- String Handling and Screen I/O Commands --------
Get character(InKey)C[E] ["prompt"][chars] Character ASCII code No Echo
Get yes/no aNswer N[E] ["prompt"][seconds] Character ASCII code No Echo
Get string S[E] ["prompt"][pattern] String Length No Echo
Put string (Zap) Z[E] ["string/prompt"] String Length StdInput
Moving Text(GetaKey)T[E] "filespec" [chars] Character ASCII code No Echo
Key check (IsKey) I[E] ["prompt"] Char.Waitng Char.Waitng Get Char
Date and Time H[E] 1=DoW 2=DoM 4=Mon 8=Yr 16=Hr 32=Min 64=Sec Sum/Cat
Keyboard BUffer U[E] ["chars"][num][/Wnum] -- Length Caps/Num
'Rithmetic (add) R[E] [num] [/Wnum] Sum/Diff Sum/Diff Subtract
Clear (Blank) Screen B[E] [New attribute] Old attribute HexAttr
Video mode/VGA border V[E] [New mode/color] Old mode/color VGA Border
--------- Disk and File Commands --------
Get file size (DIR=0) F[E] filespec[/Wdiv/X]Bytes/Hex Kilobytes Kb/10
Get disk free space K[E] [drive] [/Wdiv] Kilobytes Kb/10 Kb/100
Get disk capacity Q[E] [drive] [/Wdiv] Kilobytes Kb/10 Kb/100
Get volume label L[E] ["label"][drive] Label 1=yes,0=no Match
Get current directory Y[E] [drive for Y] Directory Level/Drive Drive:A=0
--------- Memory and System Commands --------
Get Environment left E[E] Bytes left Bytes left Bytes/10
Get memory free M[E] Kilobytes Kilobytes Kb/10
Get/Set Break Flag BR [New flag 1=on, 0=off] Old flag None
Check for printer(PRN) P[E] 1=yes,0=no 1=yes,0=no Initialize
Check 4DOS/Windows 4[E] 1=yes,0=no 1=yes,0=no Windows
Get DOS version D[E] Major Vers. MajorMinor MinorEnv
Check coprocessor/CPU 7[E] 1=yes,0=no 1=yes,0=no CPU Type
Check ANSI.SYS/Model A[E] 1=yes,0=no 1=yes,0=no PC Model
Warm/Cold Boot W[E] If argument given then 1=warm, 0=cold ColdBoot
Surrogates: }=Carriage Return, ~=Escape, Alt-255=Space/Blank.
SWITCHES: /C Ctrl-Break, /U /L case, /M Master Env, /E Enhanced keys, /Vvar=
/X eXtended keys/Hex, /A[nnn] prompt Attribute, /W[nnnn] Wait seconds/div
/B flush key Buffer, /TL /TR Trim, /~ Escape action for GET S, /V- No var
See GET.DOC for additional features and BATch programming instructions.
|
|