|
angel25
新手上路

积分 12
发帖 4
注册 2006-10-17
状态 离线
|
『楼 主』:
想在AUTOEXEC.bat加载点东西,该如何写
使用 LLM 解释/回答一下
想在AUTOEXEC.bat加载点东西,怎么写呢?
@ECHO OFF (就是不能显示中文,用TW就花屏,系统是XP)
pbios
font16
hzvio95
hzkbd
ctrlpan
CLS
ECHO OFF
ECHO ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
ECHO ┃ !!!警告!!! ┃
ECHO ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
ECHO ┃ 下面将把您的系统恢复到初始状态,但 C 盘现有数据会全部丢失! ┃
ECHO ┃ ┃
ECHO ┃ 按任意键继续并且不再有提示,按 CTRL + C ,并在随后出现的提 ┃
ECHO ┃ ┃
ECHO ┃ 示后键入 Y 退出。 ┃
ECHO ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
PAUSE
Want to load something in AUTOEXEC.bat, how to write it?
@ECHO OFF (Just can't display Chinese, using TW will have screen flicker, the system is XP)
pbios
font16
hzvio95
hzkbd
ctrlpan
CLS
ECHO OFF
ECHO ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
ECHO ┃ !!!Warning!!! ┃
ECHO ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
ECHO ┃ The following will restore your system to the initial state, but all existing data on drive C will be lost! ┃
ECHO ┃ ┃
ECHO ┃ Press any key to continue and there will be no more prompts, press CTRL + C, and then type Y in the subsequent prompt to exit. ┃
ECHO ┃ ┃
ECHO ┃ Prompt to exit. ┃
ECHO ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
PAUSE
|
|
2006-10-18 01:47 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
|
2006-10-18 05:45 |
|
|
angel25
新手上路

积分 12
发帖 4
注册 2006-10-17
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by he200377 at 2006-10-18 05:45:
用set /p
新手来的,不懂加在哪个地方,请指教!!
Originally posted by he200377 at 2006-10-18 05:45:
Using set /p
Newcomer here, don't understand where to add it, please advise!
|
|
2006-10-18 06:55 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
“按任意键继续并且不再有提示,按 CTRL + C ” 这可够危险的!!!
总有万一的时候多按了一个键怎么办?全完了:(
最好是Y和N来决定用户是否需要选择一些可能存在危险的操作~:)
"Press any key to continue and no more prompts, press CTRL + C" This is quite dangerous!!! There's always a case where you press an extra key, then it's all over : ( It's better to use Y and N to let the user decide whether to perform some potentially dangerous operations ~ : )
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-10-18 07:04 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by angel25 at 2006-10-18 06:55:
新手来的,不懂加在哪个地方,请指教!!
SET /P 是取用户的键盘或定向所输入的内容……
更详细的内容需要看DOS帮助: SET /?
Originally posted by angel25 at 2006-10-18 06:55:
Newcomer here, don't know where to add it, please advise!!
SET /P is to get the content entered by the user's keyboard or redirecting...
For more detailed content, you need to look at the DOS help: SET /?
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-10-18 07:06 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Originally posted by angel25 at 2006-10-18 06:55:
新手来的,不懂加在哪个地方,请指教!!
set var=
set /p var= 选择操作:
if == goto y
if == goto n
Originally posted by angel25 at 2006-10-18 06:55:
Newcomer here, don't know where to add, please advise!!
set var=
set /p var= Select operation:
if == goto y
if == goto n
|
|
2006-10-18 07:08 |
|
|
angel25
新手上路

积分 12
发帖 4
注册 2006-10-17
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
谢谢各位的帮忙,不过现在最主要的是不能够显示中文,出现乱码?
Thanks for everyone's help, but the most important thing now is that Chinese characters cannot be displayed, and there is garbled text?
|
|
2006-10-18 07:26 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
你还是先说明这个AUTOEXEC.bat是XP下使用还是纯dos下使用,不然走了很多弯路的哦!
1:set /p 纯dos下没有此参数
2:XP是不用加载中文系统的
3:XP下不能用ghost恢复,即使用ghost32此时C盘受XP系统自身保护的
You'd better first explain whether this AUTOEXEC.bat is for use under XP or pure DOS, otherwise it will take a lot of detours!
1: set /p has no such parameter under pure DOS
2: XP does not need to load the Chinese system
3: Under XP, ghost cannot be used for restoration, that is, even if ghost32 is used, the C drive is protected by the XP system itself
|

第一高手 第二高手
我的小站
 |
|
2006-10-18 11:48 |
|
|
vhhshl
新手上路

积分 12
发帖 6
注册 2006-9-14
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
楼上的说法很对呀!哈哈!
如果是在纯DOS下运行的话,只需把上面的批处理稍微修改一下即可:
@ECHO OFF
tw /np>nul
CLS
ECHO ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
ECHO ┃ !!!警告!!! ┃
ECHO ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
ECHO ┃ 下面将把您的系统恢复到初始状态,但 C 盘现有数据会全部丢失! ┃
ECHO ┃ ┃
ECHO ┃ 按任意键继续并且不再有提示,按 CTRL + C ,并在随后出现的提 ┃
ECHO ┃ ┃
ECHO ┃ 示后键入 Y 退出。 ┃
ECHO ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
PAUSE
注意,ECHO后面没有字符的要加上个“.”。
也可以使用如下的批处理:
@echo off
SHCDX33A /D:MSCD001 /L:Z /V
TW /NP>nul
:DISPLAY
cls
echo.
echo 1.启动到GHOST8.3
echo.
echo 2.直接恢复系统到C盘
echo.
echo 3.启动到DOS
echo.
echo.
echo.
choice /c:123
if errorlevel 4 goto DISPLAY
if errorlevel 3 goto MENU3
if errorlevel 2 goto MENU2
if errorlevel 1 goto MENU1
:MENU1
MOUSE.COM
GHOST.EXE
RESTART
:MENU2
ghost.exe -clone,mode=pload,src=z:\ghost\winxp.gho:1,dst=1:1 -sure -rb
:MENU3
因为上面的MENU1、2都有直接启动项,省略了相应的goto语句;
语句中的“src=z:\ghost\winxp.gho:1”,可替换为自己的ghost镜像路径及名称。
Last edited by vhhshl on 2006-10-19 at 12:32 ]
What the person upstairs said is very correct! Haha!
If it is run under pure DOS, you just need to slightly modify the above batch file:
@ECHO OFF
tw /np>nul
CLS
ECHO ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
ECHO ┃ !!!Warning!!! ┃
ECHO ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
ECHO ┃ The following will restore your system to the initial state, but all existing data on drive C will be lost! ┃
ECHO ┃ ┃
ECHO ┃ Press any key to continue and there will be no more prompts. Press CTRL + C, and then type Y to exit after the subsequent prompt. ┃
ECHO ┃ ┃
ECHO ┃ Prompt after typing Y to exit. ┃
ECHO ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
PAUSE
Note that if there are no characters after ECHO, you need to add a "."
You can also use the following batch file:
@echo off
SHCDX33A /D:MSCD001 /L:Z /V
TW /NP>nul
:DISPLAY
cls
echo.
echo 1. Boot to GHOST8.3
echo.
echo 2. Directly restore the system to drive C
echo.
echo 3. Boot to DOS
echo.
echo.
echo.
choice /c:123
if errorlevel 4 goto DISPLAY
if errorlevel 3 goto MENU3
if errorlevel 2 goto MENU2
if errorlevel 1 goto MENU1
:MENU1
MOUSE.COM
GHOST.EXE
RESTART
:MENU2
ghost.exe -clone,mode=pload,src=z:\ghost\winxp.gho:1,dst=1:1 -sure -rb
:MENU3
Because the above MENU1 and 2 have direct boot items, the corresponding goto statements are omitted;
The "src=z:\ghost\winxp.gho:1" in the statement can be replaced with your own ghost image path and name.
Last edited by vhhshl on 2006-10-19 at 12:32 ]
|
|
2006-10-19 12:05 |
|
|
xypcmac
初级用户
 
积分 167
发帖 80
注册 2005-11-7
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
楼上的有耐性哦!
The person upstairs has a lot of patience!
|
|
2006-10-19 14:11 |
|
|
yy2372575
初级用户
 
积分 73
发帖 26
注册 2006-5-3
状态 离线
|
『第 11 楼』:
研究研究这个
使用 LLM 解释/回答一下
晕!!没法传附件!!
Oh, can't upload attachments!!
|
|
2006-10-25 10:13 |
|
|
linzongjian
新手上路

积分 6
发帖 3
注册 2006-10-25
状态 离线
|
|
2006-10-26 00:25 |
|