中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-18 12:51
47,814 topics / 349,908 posts / today 1 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Please provide the specific content in Chinese that needs to be translated. As the current content "求一判断某盘符的批处理.....谢谢" is already in Chinese, and according to the requirements, if it's not translatable, return the original text. So the result is: 求一判断某盘符的批处理.....谢谢
Printable Version  1,647 / 6
Floor1 29406352 Posted 2006-11-02 23:56
初级用户 Posts 17 Credits 43
1. Determine if drive X exists
2. If it exists, directly run a.bat
3. If it doesn't exist, run b.bat

Thank you so much~~~~~~~~~
Floor2 fastslz Posted 2006-11-03 00:07
铂金会员 Posts 2,315 Credits 5,493 From 上海
VOL X: >nul
IF NOT ERRORLEVEL 1 goto 运行a
b.bat
goto end
:运行a
a.bat
goto end
:end
rem Universal for pure DOS or CMD~
Floor3 29406352 Posted 2006-11-03 00:14
初级用户 Posts 17 Credits 43
Thank you in advance, I'll try it when I have time ~~~~~~
Floor4 namejm Posted 2006-11-03 01:10
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Using the format of if not exist c:\ might be a bit simpler, right?
Floor5 fastslz Posted 2006-11-03 02:10
铂金会员 Posts 2,315 Credits 5,493 From 上海
if exist x:\ or if not exist x:\ is not stable enough in pure DOS. The thread starter didn't specify the running environment and then came up with a compromise method
Floor6 不得不爱 Posted 2006-11-03 02:15
超级版主 Posts 2,044 Credits 5,310 From 四川南充
Is this simple?
vol g:&&a.bat||b.bat
Floor7 pccboy Posted 2006-11-04 03:58
新手上路 Posts 2 Credits 6
Sweat. .. They are all strong people!!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023