中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-09 17:33
47,811 主题排行 / 349,896 发帖 / 今日 1 篇 / 48,254 会员排行
DOS批处理 & 脚本技术(批处理室) » [求助]如何执行文本里的文件名!
可打印版本  1,033 / 8
第1楼 logopc 发表于 2008-06-26 18:06
初级用户 发帖 13 积分 32
[求助]如何执行文本里的文件名!
是这样的, 我想用批处理读取文本文件里的名称然后执行,该如何去写!请教各位高手.

例如文本内容如下,里面的内容随时改变(CAL.TXT)

name.exe
TEL.exe
Home.exe
CAL.exe
DAY.txt
UDY.doc
SIZE.EXE
第2楼 HAT 发表于 2008-06-26 18:11
版主 发帖 5,017 积分 9,023


[ Last edited by HAT on 2008-6-26 at 06:12 PM ]
第3楼 tmkai 发表于 2008-06-27 00:03
新手上路 发帖 4 积分 8
如果楼主里面放上N多不同型的程式,要执行应该还会根据不同的类型去调用不同的程式的吧。如果全是EXE 貌似start /wait <cal.TXT就可以吧!
向各位大侠请教
第4楼 yishanju 发表于 2008-06-27 00:11
银牌会员 发帖 1,357 积分 1,488
楼主写的病毒么
第5楼 lxmxn 发表于 2008-06-27 19:04
版主 发帖 4,938 积分 11,386
Originally posted by tmkai at 2008-6-27 00:03:
如果楼主里面放上N多不同型的程式,要执行应该还会根据不同的类型去调用不同的程式的吧。如果全是EXE 貌似start /wait <cal.TXT就可以吧!
向各位大侠请教

这样start行吗? 很怀疑……
第6楼 seuseuseu 发表于 2008-09-08 14:12
新手上路 发帖 6 积分 12
顶起来
第7楼 seuseuseu 发表于 2008-09-08 14:13
新手上路 发帖 6 积分 12
顶起来
第8楼 terrytong 发表于 2008-09-08 17:53
中级用户 发帖 115 积分 240
Originally posted by tmkai at 2008-6-27 00:03:
如果楼主里面放上N多不同型的程式,要执行应该还会根据不同的类型去调用不同的程式的吧。如果全是EXE 貌似start /wait <cal.TXT就可以吧!
向各位大侠请教

一直在找个能一个一个按着顺序来执行的批处理。也就是下个程序要等上个程序执行完后才运行.
第9楼 HAT 发表于 2008-09-08 21:14
版主 发帖 5,017 积分 9,023
Re 8楼
start /?
Starts a separate window to run a specified program or command.

START




"title" Title to display in window title bar.
path Starting directory
B Start application without creating a new window. The
application has ^C handling ignored. Unless the application
enables ^C processing, ^Break is the only way to interrupt
the application
I The new environment will be the original environment passed
to the cmd.exe and not the current environment.
MIN Start window minimized
MAX Start window maximized
SEPARATE Start 16-bit Windows program in separate memory space
SHARED Start 16-bit Windows program in shared memory space
LOW Start application in the IDLE priority class
NORMAL Start application in the NORMAL priority class
HIGH Start application in the HIGH priority class
REALTIME Start application in the REALTIME priority class
ABOVENORMAL Start application in the ABOVENORMAL priority class
BELOWNORMAL Start application in the BELOWNORMAL priority class
WAIT Start application and wait for it to terminate
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023