中国DOS联盟

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

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

中国DOS联盟论坛
现在时间是 2026-07-02 15:06
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » 救教ntfs问题?? 查看 733 回复 3
楼 主 救教ntfs问题?? 发表于 2008-08-23 20:31 ·  中国 浙江 嘉兴 嘉善县 电信
新手上路
积分 12
发帖 4
注册 2008-08-16 10:02
17年会员
UID 123321
性别 男
状态 离线
@echo off
LH %RAMD%:\Mouse.exe >NUL
%RAMD%:\Recur.exe >NUL
:Menu
wbat cls (+black on +brown) ! text 28,5 @:Copyright
call w.bat box @:Menu1
if errorlevel 100 goto Menu
if errorlevel 9 goto OFF
if errorlevel 8 goto REST
if errorlevel 7 goto MS_DOS
if errorlevel 6 goto BF_F
if errorlevel 5 goto BF_E
if errorlevel 4 goto BF_D
if errorlevel 3 goto HF_F
if errorlevel 2 goto HF_E
If errorlevel 1 goto HF_D
goto Menu

:HF_D
if not exist D:\system.GHO goto HF_HERROR
GHOST -clone,mode=pload,src=1:2\System.GHO:1,dst=1:1 -sure -crcignore -fx
goto HF_OK

:HF_E
if not exist E:\system.GHO goto HF_HERROR
GHOST -clone,mode=pload,src=1:3\System.GHO:1,dst=1:1 -sure -crcignore -fx
goto HF_OK

:HF_F
if not exist F:\system.GHO goto HF_HERROR
GHOST -clone,mode=pload,src=1:4\System.GHO:1,dst=1:1 -sure -crcignore -fx
goto HF_OK

:BF_D
if exist D:\system.GHO goto BF_HERROR
GHOST -clone,mode=pdump,src=1:1,dst=1:2\System.GHO -z2 -sure -fro -fx
goto BF_OK

:BF_E
if exist E:\system.GHO goto BF_HERROR
GHOST -clone,mode=pdump,src=1:1,dst=1:3\System.GHO -z2 -sure -fro -fx
goto BF_OK

:BF_F
if exist F:\system.GHO goto BF_HERROR
GHOST -clone,mode=pdump,src=1:1,dst=1:4\System.GHO -z2 -sure -fro -fx
goto BF_OK


:HF_HERROR
wbat cls (+black on +brown) ! text 28,5 @:Copyright
call w.bat box @:HF_HERROR1 #1,15
if errorlevel 1 goto Menu


:BF_HERROR
wbat cls (+black on +brown) ! text 28,5 @:Copyright
call w.bat box @:BF_HERROR1 #1,15
if errorlevel 1 goto Menu


:HF_OK
wbat cls (+black on +brown) ! text 28,5 @:Copyright
call w.bat box @:HF_OK1 #1,15
if errorlevel 100 goto Menu
if errorlevel 2 goto Menu
if errorlevel 1 goto REST
goto END

:BF_OK
wbat cls (+black on +brown) ! text 28,5 @:Copyright
call w.bat box @:BF_OK1 #1,15
if errorlevel 100 goto Menu
if errorlevel 2 goto Menu
if errorlevel 1 goto REST
goto END


:MS_DOS
call w.bat box @:MS_DOS1 #1,15
if errorlevel 100 goto menu
if errorlevel 2 goto menu
if errorlevel 1 goto DS
goto END

:DS
SET X=
%ramd%:
cls

:REST
func -r

:OFF
func -s

:END

--------------------------------------------------------------------------------------------------
if not exist D:\system.GHO goto HF_HERROR
if exist E:\system.GHO goto BF_HERROR
這兩句怎麽結絕呀,,,在dos下不能識別這兩句..
2 发表于 2008-08-23 22:19 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
积分 6,962
发帖 2,753
注册 2003-04-16 00:00
23年会员
UID 1565
性别 男
来自 河北保定
状态 离线
劳驾楼主用中国话(别人能够看懂的)讲问题,说清楚你是什么问题,认真的提问题,你不认真,别人更不会认真的。
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
3 呵呵 发表于 2008-08-24 15:56 ·  中国 浙江 嘉兴 嘉善县 电信
新手上路
积分 12
发帖 4
注册 2008-08-16 10:02
17年会员
UID 123321
性别 男
状态 离线
不好意思呀,,我的输入不知出了什么问题只能打繁体字,,,!
我的意思就是,,我做的个img镜象文件,,,,但是if else只能判断fat格式的分区,,对ntfs不起作用,,,有什么办法可以在dos下判断一个文件的存在,,我的QQ:53563652希望知道的朋友帮帮忙
4 发表于 2008-09-04 17:17 ·  中国 四川 凉山彝族自治州 电信
新手上路
积分 2
发帖 1
注册 2008-09-04 16:54
17年会员
UID 124789
性别 男
状态 离线
haodongdong
论坛跳转: