中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-12 10:46
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行
DOS批处理 & 脚本技术(批处理室) » [求助]:老师能帮我评点一下这个*BAT吗?
可打印版本  1,044 / 4
第1楼 yudeng1210 发表于 2006-05-31 22:43
初级用户 发帖 7 积分 29
[求助]:老师能帮我评点一下这个*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

[ Last edited by yudeng1210 on 2006-5-31 at 22:48 ]
第2楼 cike09 发表于 2009-09-12 05:14
新手上路 发帖 11 积分 17 来自 宇宙·······禹州
什么也没有
第3楼 523066680 发表于 2009-09-12 05:44
银牌会员 发帖 1,133 积分 2,362
1,这个 a:\findramd 是干什么的

2, 英语很好,教我……
第4楼 495739660 发表于 2009-09-13 01:44
新手上路 发帖 4 积分 7
!!!!!!!!无语!
你这全是英语句子, 一点作用也没有啊!
第5楼 5872169 发表于 2009-09-13 06:21
高级用户 发帖 474 积分 959
楼主,你是不是以为这里是英语角啊,呵呵
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023