中国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-02 16:45
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Help] How to execute multiple files in the same folder in sequence
Printable Version  968 / 3
Floor1 NeverLand Posted 2006-12-05 23:08
初级用户 Posts 11 Credits 28
I'm new here, and there are a lot of things I don't understand.
The question is as follows:
There are three files in the hello folder: 1.txt, 2.xls, and 3.doc
I need to write a batch file that first executes 1.txt, then 2.xls, and finally 3.doc, without any manual intervention
Floor2 HUNRYBECKY Posted 2006-12-05 23:25
银牌会员 Posts 442 Credits 1,179
You can just execute them directly in order. The code below is very simple:
@echo off
start 1.txt
start 2.xls
start 3.doc
@echo on
exit
Floor3 lxmxn Posted 2006-12-06 01:37
版主 Posts 4,938 Credits 11,386
Floor4 NeverLand Posted 2006-12-08 00:15
初级用户 Posts 11 Credits 28
Mm, thanks to both of you
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023