| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1057 人关注过本帖
标题:解析这段批处理文件含意?
只看楼主 加入收藏
sharenet
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-7-16
收藏
 问题点数:0 回复次数:5 
解析这段批处理文件含意?

autoexec.bat文件:
@ECHO OFF
IF "%CONFIG%"=="KV3000" GOTO KV3000
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%:\;%CDROM%:\WIN98\;%CDROM%:\TOOLS\;%CDROM%:\WIN98\TOOLS\OLDMSDOS\;%CDROM%:\TOOLS\GUARD\;%CDROM%:\TOOLS\PQMAGIC\
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.

IF "%config%"=="NOCD" GOTO QUIT
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT

:KV3000
cls
LH CDROM
echo.
echo.
echo.
GOTO END

:QUIT
%RAMD%:
TW /NP >NUL
CLS
A:
echo 分析工具包已经成功导入驱动器 %RAMD%.
IF "%CDROM%"=="" GOTO NOCDDRV
ECHO 已经成功加载光盘驱动器 %CDROM%.

:NOCDDRV
echo 要得到帮助,请键入 HELP 然后按下 ENTER.
type readme.txt
rem clean up environment variables

:END

搜索更多相关主题的帖子: 批处理 CDROM 含意 set 文件 
2006-07-16 22:17
sharenet
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-7-16
收藏
得分:0 

setramd.bat文件:
@echo off
set RAMD=
set CDROM=

echo.
echo Preparing to start your computer.
echo This may take a few minutes. Please wait...
echo.

a:\findramd

if errorlevel 255 goto no_ramdrive

if not errorlevel 3 goto no_ramdrive

goto do_shift

:loop
if errorlevel %1 goto no_shift

:do_shift
set cdrom=%2
shift
shift
if not %1*==* goto loop
goto no_ramdrive

:no_shift
set ramd=%2

if "%RAMD%"=="C" goto c_drive

goto success

:c_drive
echo Windows 98 has detected that drive C does not contain a valid FAT or
echo FAT32 partition. There are several possible causes.
echo.
echo 1. The drive may need to be partitioned. To create a partition on the drive,
echo run FDISK from the MS-DOS command prompt.
echo.
echo 2. You may be using third-party disk-partitioning software. If you are using
echo this type of software, remove the Emergency Boot Disk and restart your
echo computer. Then, follow the on-screen instructions to start your computer from
echo a floppy disk.
echo .
echo 3. Some viruses also cause your drive C to not register. You can use a virus
echo scanning program to check your computer for viruses.
echo.
goto success

:no_ramdrive
echo The Windows 98 startup disk could not create a temporary drive for the
echo diagnostic tools. This may be because this computer has less than the
echo minimum required extended memory.
echo.
:success

2006-07-16 22:18
sharenet
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-7-16
收藏
得分:0 

很多不明白的地方.请大虾解析下.不慎感激.
如:
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
不明白其含义.

2006-07-16 22:20
sharenet
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-7-16
收藏
得分:0 
没人理我呀.
2006-07-19 21:37
rodney
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2006-7-28
收藏
得分:0 

2006-07-30 16:01
sharenet
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-7-16
收藏
得分:0 
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
path=%RAMD%:\;a:\;%CDROM%:\;%CDROM%:\WIN98\;%CDROM%:\TOOLS\;%CDROM%:\WIN98\TOOLS\OLDMSDOS\;%CDROM%:\TOOLS\GUARD\;%CDROM%:\TOOLS\PQMAGIC\
copy command.com %RAMD%:\ > NUL


顶一下.解释下这几句的含义.不慎感激.
2006-07-31 22:19
快速回复:解析这段批处理文件含意?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023833 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved