中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-12 18:48
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [求助]哪位前辈能详细讲解一下Get的各项参数? 查看 705 回复 1
楼 主 [求助]哪位前辈能详细讲解一下Get的各项参数? 发表于 2003-07-29 00:00 ·  中国 广东 肇庆 电信
高级用户
★★
积分 578
发帖 135
注册 2003-07-10 00:00
23年会员
UID 6709
性别 男
状态 离线


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)-- -----
--------- String Handling and Screen I/O Commands --------
Get character(InKey)C Character ASCII code No Echo
Get yes/no aNswer N Character ASCII code No Echo
Get string S String Length No Echo
Put string (Zap) Z String Length StdInput
Moving Text(GetaKey)T "filespec" Character ASCII code No Echo
Key check (IsKey) I Char.Waitng Char.Waitng Get Char
Date and Time H 1=DoW 2=DoM 4=Mon 8=Yr 16=Hr 32=Min 64=Sec Sum/Cat
Keyboard BUffer U -- Length Caps/Num
''''''''Rithmetic (add) R Sum/Diff Sum/Diff Subtract
Clear (Blank) Screen B Old attribute HexAttr
Video mode/VGA border V Old mode/color VGA Border
--------- Disk and File Commands --------
Get file size (DIR=0) F filespecBytes/Hex Kilobytes Kb/10
Get disk free space K Kilobytes Kb/10 Kb/100
Get disk capacity Q Kilobytes Kb/10 Kb/100
Get volume label L Label 1=yes,0=no Match
Get current directory Y Directory Level/Drive Drive:A=0
--------- Memory and System Commands --------
Get Environment left E Bytes left Bytes left Bytes/10
Get memory free M Kilobytes Kilobytes Kb/10
Get/Set Break Flag BR Old flag None
Check for printer(PRN) P 1=yes,0=no 1=yes,0=no Initialize
Check 4DOS/Windows 4 1=yes,0=no 1=yes,0=no Windows
Get DOS version D Major Vers. MajorMinor MinorEnv
Check coprocessor/CPU 7 1=yes,0=no 1=yes,0=no CPU Type
Check ANSI.SYS/Model A 1=yes,0=no 1=yes,0=no PC Model
Warm/Cold Boot W 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 prompt Attribute, /W 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.

譬如红色那一项,我要检查e:盘的剩余空间,于是输入:
get k e: /Wdiv
却什么也没显示!不知道该怎么用?





2 发表于 2003-08-06 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
积分 1,681
发帖 512
注册 2003-08-02 00:00
23年会员
UID 7953
性别 男
状态 离线
if errorlevel ...
Somehow somewhere I've got to choose.
No matter if it is win or lose.
论坛跳转: