当前位置: 技术问答>linux和unix
翻译Autoexec.bat
来源: 互联网 发布时间:2014-11-24
本文导语: 谁能逐行翻译一下我的Autoexec.bat,还想问一下他和autoexec.bat有何不同 @ECHO OFF set EXPAND=YES SET DIRCMD=/O:N set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15 set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K...
谁能逐行翻译一下我的Autoexec.bat,还想问一下他和autoexec.bat有何不同
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:
set tmp=c:
path=%RAMD%:;a:;%CDROM%:
copy command.com %RAMD%: > NUL
set comspec=%RAMD%:command.com
copy extract.exe %RAMD%: > NUL
copy readme.txt %RAMD%: > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:
set tmp=c:
path=%RAMD%:;a:;%CDROM%:
copy command.com %RAMD%: > NUL
set comspec=%RAMD%:command.com
copy extract.exe %RAMD%: > NUL
copy readme.txt %RAMD%: > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=
|
谁能逐行翻译一下我的Autoexec.bat,还想问一下他和autoexec.bat有何不同
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls /*设置最后盘符变量*/
call setramd.bat %LglDrv% /*调用批处理,其实这个才是真正的设置将EBD内容映射到内存中,成为一个RAMDISK*/
set temp=c:
set tmp=c: /*设置DOS临时文件夹*/
path=%RAMD%:;a:;%CDROM%:
copy command.com %RAMD%: > NUL
set comspec=%RAMD%:command.com
copy extract.exe %RAMD%: > NUL
copy readme.txt %RAMD%: > NUL /*将几个文件拷贝到RAMDISK*/
:ERROR
IF EXIST ebd.cab GOTO EXT /*如果存在EBD.CAB就执行EXT*/
echo Please insert Windows 98 Startup Disk 2
echo.
pause /*暂停,按任一键继续*/
GOTO ERROR /*否则执行ERROR*/
:EXT
%RAMD%:extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo. /*将EBD内容解压到RAMDISK,并显示成功信息*/
IF "%config%"=="NOCD" GOTO QUIT /*在此调用CONFIG里面菜单的选择*/
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:HELP
cls
call help.bat /*查看HELP*/
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com /*重新启动电脑*/
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables/*清除变量*/
set CDROM=
set LglDrv=
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls /*设置最后盘符变量*/
call setramd.bat %LglDrv% /*调用批处理,其实这个才是真正的设置将EBD内容映射到内存中,成为一个RAMDISK*/
set temp=c:
set tmp=c: /*设置DOS临时文件夹*/
path=%RAMD%:;a:;%CDROM%:
copy command.com %RAMD%: > NUL
set comspec=%RAMD%:command.com
copy extract.exe %RAMD%: > NUL
copy readme.txt %RAMD%: > NUL /*将几个文件拷贝到RAMDISK*/
:ERROR
IF EXIST ebd.cab GOTO EXT /*如果存在EBD.CAB就执行EXT*/
echo Please insert Windows 98 Startup Disk 2
echo.
pause /*暂停,按任一键继续*/
GOTO ERROR /*否则执行ERROR*/
:EXT
%RAMD%:extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo. /*将EBD内容解压到RAMDISK,并显示成功信息*/
IF "%config%"=="NOCD" GOTO QUIT /*在此调用CONFIG里面菜单的选择*/
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:HELP
cls
call help.bat /*查看HELP*/
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com /*重新启动电脑*/
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables/*清除变量*/
set CDROM=
set LglDrv=
|
你这个是win98启动盘的autoexec.bat 文件。
给你反译呀,很长的,我不想打,如果你想学的话。来个信吧
3604800
给你反译呀,很长的,我不想打,如果你想学的话。来个信吧
3604800
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。