中国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-09-13 23:08
47,812 topics / 349,916 posts / today 0 new / 48,268 members
论坛回收站 » Please provide the specific content that needs to be written into the batch processing so that I can help you translate or write the relevant batch processing content.
Printable Version  1,890 / 2
Floor1 lj163 Posted 2009-09-03 15:40
新手上路 Posts 4 Credits 8
If there is no 1.txt on drive C, then run 1.exe and create 1.txt.
If there is 1.txt but no 2.txt on drive C, then run 2.exe and create 2.txt.
If there are both 1.txt and 2.txt on drive C, then exit the batch processing.
I wonder which fellow can help with this? Thanks a lot.
Floor2 Hanyeguxing Posted 2009-09-03 16:03
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
```@echo off
if not exist C:\1.txt (
start C:\1.exe
echo. 2>C:\1.txt
) else (
if exist C:\2.txt (goto :eof) else (
start C:\2.exe
echo. 2>C:\2.txt
))```
Floor3 lj163 Posted 2009-09-03 22:02
新手上路 Posts 4 Credits 8
It seems there is no response when running.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023