中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-12 11:45
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [求助]:老师能帮我评点一下这个*BAT吗? 查看 1,046 回复 4
楼 主 [求助]:老师能帮我评点一下这个*BAT吗? 发表于 2006-05-31 22:43 ·  中国 广西 百色 电信
初级用户
积分 29
发帖 7
注册 2006-01-04 19:51
20年会员
UID 48442
状态 离线
@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 ]
本帖最近评分记录 (共 1 条) 点击查看详情
评分人分数时间
cike09 -1 2009-09-12 05:14
2 发表于 2009-09-12 05:14 ·  中国 河南 许昌 禹州市 电信
新手上路
积分 17
发帖 11
注册 2009-09-12 01:24
16年会员
UID 151871
性别 男
来自 宇宙·······禹州
状态 离线
什么也没有
3 发表于 2009-09-12 05:44 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
积分 2,362
发帖 1,133
注册 2008-02-02 21:36
18年会员
UID 110072
性别 男
状态 离线
1,这个 a:\findramd 是干什么的

2, 英语很好,教我……
4 !!!!!!!!无语! 发表于 2009-09-13 01:44 ·  中国 广东 东莞 电信
新手上路
积分 7
发帖 4
注册 2009-08-25 04:34
16年会员
UID 150926
性别 男
状态 离线
你这全是英语句子, 一点作用也没有啊!
5 发表于 2009-09-13 06:21 ·  中国 山东 济南 联通
高级用户
★★★
积分 959
发帖 474
注册 2007-10-25 10:40
18年会员
UID 100716
性别 男
状态 离线
楼主,你是不是以为这里是英语角啊,呵呵
论坛跳转: