|
qingyangecho
初级用户
 
积分 97
发帖 40
注册 2006-11-1
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
我用的是98启动盘,所以用的是从本论坛下载的CHOICE.COM
VM是vmware的简称,中文名子就是虚拟机
I use a 98 boot disk, so I use the CHOICE.COM downloaded from this forum.
VM is the abbreviation of vmware, and its Chinese name is virtual machine.
|
|
2006-11-2 22:24 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
汗~VM(虚拟机)中是什么操作系统?(虚拟机可以安装任何系统所以我问什么操作系统?)
如果98启动盘,你不能运行此批处理,第一条命令
CLS
COLOR 0A
纯DOS没有COLOR 0A命令,更不用说NET START命令
你所说的执行第一条命令后跳出批处理,原因是你可能在CONFIG.SYS中使用了COMMAND.COM /F参数
所有回答只是猜测~
Sweat~ What operating system is in the VM (virtual machine)? (A virtual machine can install any system, so why do I ask what operating system?)
If it's a 98 boot disk, you can't run this batch file. The first command
CLS
COLOR 0A
Pure DOS doesn't have the COLOR 0A command, let alone the NET START command
The reason you mentioned that the batch file jumps out after executing the first command is that you may have used the COMMAND.COM /F parameter in CONFIG.SYS
All answers are just guesses~
|

第一高手 第二高手
我的小站
 |
|
2006-11-2 22:42 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-11-2 22:51 |
|
|
qingyangecho
初级用户
 
积分 97
发帖 40
注册 2006-11-1
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
VM中是一个空系统,因为旧系统前两天刚被我删了还没有安装新的系统
一楼的那一帖是我从VM绿色版中找出来的,想根据这一个批处理改成自己需要的.所以没有COLOR OA这个命令
我所说的并不是执行第一条命令后跳出批处理,而是直接运行第一条命令.简单的说就是根本不让我选择.还有还有,如果是AUTOEXEC.BAT自运行批处理那倒好办了,只要配合CONFIG.SYS就可以有选择项了,问题是这只是一个普通的批处理,是在启动DOS后在需要的时候才手动输入启动的
In the VM, it's an empty system because the old system was just deleted by me the other day and a new system hasn't been installed yet. The post on the first floor was what I found from the VM green version, and I want to modify it according to this batch file to meet my needs. So there is no COLOR OA command. What I mean is not that after executing the first command, the batch file pops up, but directly running the first command. Simply put, it just doesn't let me choose at all. Also, if it were the AUTOEXEC.BAT self-running batch file, it would be easy. Just cooperate with CONFIG.SYS to have options, but the problem is that this is just an ordinary batch file, which is manually input and started when needed after booting into DOS
|
|
2006-11-2 22:55 |
|
|
qingyangecho
初级用户
 
积分 97
发帖 40
注册 2006-11-1
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
这个才是我想用的批处理
@ECHO OFF
CLS
GOTO MENU
:MENU
ECHO.
ECHO. =-=-=-=-=-=-=-=--=-=-=--=-=-=--=-=-=-=
ECHO.
ECHO.
ECHO.
ECHO. 1 Restore F11 message and function.
ECHO.
ECHO. 2 Suppress F11 message but retain the F11 function.
ECHO.
ECHO. 3 Disable F11 message and function.
ECHO.
ECHO.
ECHO. 4 E X I T
ECHO.
ECHO.
ECHO.
ECHO.
ECHO. =-=-=-=-=-=-=-=--=-=-=--=-=-=--=-=-=-=
ECHO.
w:\CHOICE.com /N /C:1234 please select 1/2/3/4....:
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 GOTO RESTORE
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 GOTO SUPPRESS
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 GOTO DISABLE
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 GOTO restort
PAUSE
:RESTORE
echo.1
pause
copy BMGRUS.BA1 BMGRUS.SCR
W:\bmgr.exe /Fboot.bin /Mbmgr%CC%.scr /s
GOTO EXIT
:SUPPRESS
echo.2
pause
fdisk/mbr
copy BMGRUS.BA2 BMGRUS.SCR
W:\bmgr.exe /Fboot.bin /Mbmgr%CC%.scr /s
type bmgrus.scr
pause
GOTO EXIT
:DISABLE
echo.3
pause
fdisk/mbr
GOTO EXIT
:restort
restort.com
:EXIT
del BMGRUS.SCR
Echo Remove the diskette and press CTRL-ALT-DEL to restart the computer.
This is the batch processing I want to use
@ECHO OFF
CLS
GOTO MENU
:MENU
ECHO.
ECHO. =-=-=-=-=-=-=-=--=-=-=--=-=-=--=-=-=-=
ECHO.
ECHO.
ECHO.
ECHO. 1 Restore F11 message and function.
ECHO.
ECHO. 2 Suppress F11 message but retain the F11 function.
ECHO.
ECHO. 3 Disable F11 message and function.
ECHO.
ECHO.
ECHO. 4 E X I T
ECHO.
ECHO.
ECHO.
ECHO.
ECHO. =-=-=-=-=-=-=-=--=-=-=--=-=-=--=-=-=-=
ECHO.
w:\CHOICE.com /N /C:1234 please select 1/2/3/4....:
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 GOTO RESTORE
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 GOTO SUPPRESS
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 GOTO DISABLE
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 GOTO restort
PAUSE
:RESTORE
echo.1
pause
copy BMGRUS.BA1 BMGRUS.SCR
W:\bmgr.exe /Fboot.bin /Mbmgr%CC%.scr /s
GOTO EXIT
:SUPPRESS
echo.2
pause
fdisk/mbr
copy BMGRUS.BA2 BMGRUS.SCR
W:\bmgr.exe /Fboot.bin /Mbmgr%CC%.scr /s
type bmgrus.scr
pause
GOTO EXIT
:DISABLE
echo.3
pause
fdisk/mbr
GOTO EXIT
:restort
restort.com
:EXIT
del BMGRUS.SCR
Echo Remove the diskette and press CTRL-ALT-DEL to restart the computer.
|
|
2006-11-2 22:59 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2006-11-2 23:08 |
|
|
qingyangecho
初级用户
 
积分 97
发帖 40
注册 2006-11-1
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
下载了你的这一份比较一下,不管是CRC32还是修改时间,都和我早先下载来的版本的数值是一样的
Downloaded this one to compare, and both the CRC32 and modification time are the same as the version I downloaded earlier.
|
|
2006-11-2 23:17 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
CHOICE /N /C:12345678 /T:1,60 按数字键(1~8)选择启动项
rem (停留60秒默认启动1)
CHOICE /N /C:12345678 /T:1,60 Choose the boot item by pressing the number keys (1-8)
rem (Stay for 60 seconds and default to start 1)
|

第一高手 第二高手
我的小站
 |
|
2006-11-2 23:33 |
|
|
qingyangecho
初级用户
 
积分 97
发帖 40
注册 2006-11-1
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
Originally posted by fastslz at 2006-11-2 11:33 PM:
CHOICE /N /C:12345678 /T:1,60 按数字键(1~8)选择启动项
rem (停留60秒默认启动1)
VM中依然是出现这个提示,不管选择哪一顶,依然执行第一条
Originally posted by fastslz at 2006-11-2 11:33 PM:
CHOICE /N /C:12345678 /T:1,60 Press the number keys (1 to 8) to select the boot item
rem (Stay for 60 seconds, default boot is 1)
In the VM, this prompt still appears, and no matter which item is selected, the first one is still executed
|
|
2006-11-3 00:02 |
|
|
ljs3509
初级用户
 
积分 28
发帖 14
注册 2006-8-16
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
应该是调用了系统变量。
看看这个有没有帮助
下表列出 Windows XP 的系统和局部环境变量。
变量 类型 说明
%ALLUSERSPROFILE% 局部 返回所有“用户配置文件”的位置。
%APPDATA% 局部 返回默认情况下应用程序存储数据的位置。
%CD% 局部 返回当前目录字符串。
%CMDCMDLINE% 局部 返回用来启动当前的 Cmd.exe 的准确命令行。
%CMDEXTVERSION% 系统 返回当前的“命令处理程序扩展”的版本号。
%COMPUTERNAME% 系统 返回计算机的名称。
%COMSPEC% 系统 返回命令行解释器可执行程序的准确路径。
%DATE% 系统 返回当前日期。使用与 date /t 命令相同的格式。由 Cmd.exe 生成。有关 date 命令的详细信息,请参阅 Date。
%ERRORLEVEL% 系统 返回最近使用过的命令的错误代码。通常用非零值表示错误。
%HOMEDRIVE% 系统 返回连接到用户主目录的本地工作站驱动器号。基于主目录值的设置。用户主目录是在“本地用户和组”中指定的。
%HOMEPATH% 系统 返回用户主目录的完整路径。基于主目录值的设置。用户主目录是在“本地用户和组”中指定的。
%HOMESHARE% 系统 返回用户的共享主目录的网络路径。基于主目录值的设置。用户主目录是在“本地用户和组”中指定的。
%LOGONSEVER% 局部 返回验证当前登录会话的域控制器的名称。
%NUMBER_OF_PROCESSORS% 系统 指定安装在计算机上的处理器的数目。
%OS% 系统 返回操作系统的名称。Windows 2000 将操作系统显示为 Windows_NT。
%PATH% 系统 指定可执行文件的搜索路径。
%PATHEXT% 系统 返回操作系统认为可执行的文件扩展名的列表。
%PROCESSOR_ARCHITECTURE% 系统 返回处理器的芯片体系结构。值: x86,IA64。
%PROCESSOR_IDENTFIER% 系统 返回处理器说明。
%PROCESSOR_LEVEL% 系统 返回计算机上安装的处理器的型号。
%PROCESSOR_LEVEL% 系统 返回处理器的版本号。
%PROMPT% 局部 返回当前解释程序的命令提示符设置。由 Cmd.exe 生成。
%RANDOM% 系统 返回 0 到 32767 之间的任意十进制数字。由 Cmd.exe 生成。
%SYSTEMDRIVE% 系统 返回包含 Windows XP 根目录(即系统根目录)的驱动器。
%SYSTEMROOT% 系统 返回 Windows XP 根目录的位置。
%TEMP% and %TMP% 系统和用户 返回对当前登录用户可用的应用程序所使用的默认临时目录。有些应用程序需要 TEMP,而其它应用程序则需要 TMP。
%TIME% 系统 返回当前时间。使用与 time /t 命令相同的格式。由 Cmd.exe 生成。有关 time 命令的详细信息,请参阅 Time。
%USERDOMAIN% 局部 返回包含用户帐户的域的名称。
%USERNAME% 局部 返回当前登录的用户的名称。
%UserPrefix% 局部 返回当前用户的配置文件的位置。
%WINDIR% 系统 返回操作系统目录的位置。
It should be calling system variables.
See if this helps
The following table lists the system and local environment variables of Windows XP.
Variable Type Description
%ALLUSERSPROFILE% Local Returns the location of all "user profiles".
%APPDATA% Local Returns the location where applications store data by default.
%CD% Local Returns the current directory string.
%CMDCMDLINE% Local Returns the exact command line used to start the current Cmd.exe.
%CMDEXTVERSION% System Returns the version number of the current "command processor extension".
%COMPUTERNAME% System Returns the name of the computer.
%COMSPEC% System Returns the exact path of the command-line interpreter executable.
%DATE% System Returns the current date. Uses the same format as the date /t command. Generated by Cmd.exe. For more information about the date command, see Date.
%ERRORLEVEL% System Returns the error code of the most recently used command. Usually indicated by a non-zero value for an error.
%HOMEDRIVE% System Returns the local workstation drive letter connected to the user's home directory. Based on the setting of the home directory value. The user's home directory is specified in "Local Users and Groups".
%HOMEPATH% System Returns the full path of the user's home directory. Based on the setting of the home directory value. The user's home directory is specified in "Local Users and Groups".
%HOMESHARE% System Returns the network path of the user's shared home directory. Based on the setting of the home directory value. The user's home directory is specified in "Local Users and Groups".
%LOGONSEVER% Local Returns the name of the domain controller that authenticates the current login session.
%NUMBER_OF_PROCESSORS% System Specifies the number of processors installed on the computer.
%OS% System Returns the name of the operating system. Windows 2000 displays the operating system as Windows_NT.
%PATH% System Specifies the search path for executable files.
%PATHEXT% System Returns the list of file extensions that the operating system considers executable.
%PROCESSOR_ARCHITECTURE% System Returns the chip architecture of the processor. Values: x86, IA64.
%PROCESSOR_IDENTFIER% System Returns the processor description.
%PROCESSOR_LEVEL% System Returns the model of the processor installed on the computer.
%PROCESSOR_LEVEL% System Returns the version number of the processor.
%PROMPT% Local Returns the command prompt setting of the current interpreter. Generated by Cmd.exe.
%RANDOM% System Returns any decimal number between 0 and 32767. Generated by Cmd.exe.
%SYSTEMDRIVE% System Returns the drive that contains the Windows XP root directory (that is, the system root directory).
%SYSTEMROOT% System Returns the location of the Windows XP root directory.
%TEMP% and %TMP% System and User Returns the default temporary directory used by applications available to the current logged-in user. Some applications need TEMP, while others need TMP.
%TIME% System Returns the current time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command, see Time.
%USERDOMAIN% Local Returns the name of the domain that contains the user account.
%USERNAME% Local Returns the name of the currently logged-in user.
%UserPrefix% Local Returns the location of the current user's profile.
%WINDIR% System Returns the location of the operating system directory.
|
|
2006-11-3 02:30 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
楼上的关于环境变量的,有两个地方需要指正一下:
%PROCESSOR_LEVEL% 系统 返回计算机上安装的处理器的型号。
%PROCESSOR_LEVEL% 系统 返回处理器的版本号。
这两个重复了,其中有一个是"%PROCESSOR_REVISION%"----系统-----返回处理器修订号的系统变量。
%TIME% 系统 返回当前时间。使用与 time /t 命令相同的格式。由 Cmd.exe 生成。有关 time 命令的详细信息,请参阅 Time。
%TIME%返回的并非与"time /t"命令相同格式的信息,"time /t"只显示的是小时以及分钟数,并没有%TIME%返回的值精确。
The above regarding environment variables, there are two places that need to be corrected:
%PROCESSOR_LEVEL% System Returns the model of the processor installed on the computer.
%PROCESSOR_LEVEL% System Returns the version number of the processor.
These two are repeated. One of them is "%PROCESSOR_REVISION%"----System-----System variable that returns the revision number of the processor.
%TIME% System Returns the current time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command, see Time.
The information returned by %TIME% is not in the same format as the "time /t" command. "time /t" only displays the hour and minute, and is not as precise as the value returned by %TIME%.
|
|
2006-11-3 06:23 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
lxmxn的细致认真助人和ljs3509的热情值得学习~:)
The meticulous earnest help of lxmxn and the enthusiasm of ljs3509 are worthy of learning ~ :)
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-3 06:34 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
Originally posted by redtek at 2006-11-3 06:34:
lxmxn的细致认真助人和ljs3509的热情值得学习~:)
redtek给好同志加了分要大张旗鼓地宣扬一番,这样才能起到激励的作用,否则,别人被加了分都还浑然未觉呢——偶也是被加了分的,一激动就跑来给 redtek 扎起了——看,这就是被加分的效果啊<img src="images/smilies/face-raspberry.png" align="absmiddle" border="0">
Originally posted by redtek at 2006-11-3 06:34:
The meticulous seriousness and helpfulness of lxmxn and the enthusiasm of ljs3509 are worth learning~:)
Redtek should publicize the fact that he gave good comrades points to play an inspiring role. Otherwise, others who are given points may not even be aware of it. ——I was also given points, and I got excited and came to support Redtek——Look, this is the effect of being given points啊:P
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-11-3 06:40 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
哈哈……多谢版主夸奖~:)
Haha... Thanks the moderator for the praise~ : )
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-3 06:48 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
|
2006-11-3 07:14 |
|