Climbing
铂金会员
网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第
4 楼』:
有很多这种工具吧。例如Horst的input或者wbat。Horst Schaeffer的主页:http://home.nikocity.de/horst.muc/int/或者
GET Version 2.8 - Bob Stephan's BATch Enhancer - Copyright 1999 Bob Stephan
Syntax: GET command argument(s) /switches More Instructions: GET.DOC
Purpose Command Argument(s) Switches Environment ErrorLevel Extended
--------- ------- ----------- ---[/]-- --(GET=)--- --(Exit)-- --[E]---
--------- String Handling and Screen I/O Commands --------
Echo EC "prompt" ANS -- -- --
Get character C[E]["prompt"][chars] All ASCII Char ASCII code No Echo
aNswer yes or no N[E]["prompt"][seconds] All ASCII Char ASCII code No Echo
Get string S[E]["prompt"][pattern] All String Length Echo .
Put string (Zap) Z ["string|&var"][skip]AWX String Length --
Standard Input ZE ["prompt"] [skip] AWX String Length --
In String #[E] "string" ['arg'] WX Position in string Extract
Moving Text T[E] "filespec" [chars] EX ASCII Char ASCII code No Echo
Key waiting I[E]["prompt"] AEX --Character Waiting-- Get Char
Keyboard bUffer U[E]["chars"][num][/Wnum]W [E]Locks Length Caps/Num
For UE:[num]=test, [/Wnum]=set:16=Scroll Lock, 32=Num Lock, 64=Caps Lock
'Rithmetic R ["+-*/!=&#^~"] num [/Wnum] AW Result Result
Blank Screen B[E] [New attribute] AWX --Old attribute-- HexAttr
Video mode/bordr V[E] [New mode|color] --Old mode/color-- Border
Video Cursor VC [Type|Position/X] X --Old type/posit-- --
Date and Time H[E] ["prompt"] code ACSWX Value Value Strng/Ctry
Code:1=DoW 2=DoM 4=Mon 8=Yr 16=Hr 32=Min 64=Sec 128=odd/even 256=100ths 512=yy
--------- Disk and File Commands --------
File size F[E] filespec[/Wdiv/X/A] AEWX Bytes/Hex KB/Wdiv Kb/10
File date F[E] filespec /E/Wcode ACES Value Value Strng/Ctry
/E required, /W codes: 2, 4, 8, 16, 32, 64, 512 as for GET H[E]
Full Path FP filespec Fullpath Length --
Disk free space K[E] [drive] [/Wdiv] AWX Kilobytes KB/10/Wdiv Kb/100
Disk capacity Q[E] [drive] [/Wdiv] AWX Kilobytes KB/10/Wdiv Kb/100
Volume label L[E] ["label"][drive] AXH Label 1=yes,0=no Match
EXEC X[E] "d:\path\program.ext" 'args' Exit[Path] Exit[Drive] Path
Current dir Y [drive] Directory Level:Root=0
Current drive YE (boot drive /X) Drive Drive:A=0
--------- Memory and System Commands --------
Environment left E[E] (full size /X) Bytes Bytes Bytes/10
Memory free/Ext M[E] (full size /X) EWdiv Kilobytes KB/MB/Wdiv Exit/10
Break Flag BR [New flag 1=on, 0=off] Old flag --
Printer(PRN) P[E] ["prompt"] [test] X 1=yes,0=no 1=yes,0=no Init
DOS Version D[E] Major Vers MajorMinor MinorEnv
DESQview Version DV Major Vers MajorMinor --
4DOS Version 4 Major Vers MajorMinor --
Windows 4E 1=yes,0=no 1=yes,0=no --
Coprocessor/CPU 7[E] 1=yes,0=no 1=yes,0=no CPU Type
ANSI.SYS/Model A[E] 1=yes,0=no 1=yes,0=no PC Model
Warm/Cold Boot W[E] ["prompt"][arg] If arg:1=warm, 0=cold ColdBoot
Surrogates: }=Carriage Return, ~=Escape, Alt-255=Space/Blank.
GLOBAL SWITCHES: (apply to most commands if appropriate)
/H Hex output, /M Master Env, /R Return Code in Environment, /U /L case
/B flush key Buffer, /TL/TR/T Trim Left/Right/Both, /V[&]var=, /V- No var
WINDOWS NT solutions: (see GET28NEW.DOC) /O for redirected output with >>
/V@filespec append the environment variable to the specified file
LOCAL SWITCHES: (action depends on the command)
/A[num] Attribute ["prompt"], All bytes [F], ASCII [R] /N No CR
/K 10 second timeout Kountdown, /S[n] Sound control/Date format
/C suppress Ctrl-Break during input [C,S,N], Compressed date [H,F/E]
/E /X EXtended keys or EXtra feature, /W[num] Wait or numerical value
See GET.DOC for additional features and BATch programming instructions.
See GET28NEW.DOC for new and changed features in Version 2.8.
GET is a shareware product. Registration is required for continued use.
|
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|