标题: [求助]如何执行文本里的文件名!
[打印本页]
作者: logopc
时间: 2008-6-26 18:06
标题: [求助]如何执行文本里的文件名!
是这样的, 我想用批处理读取文本文件里的名称然后执行,该如何去写!请教各位高手.
例如文本内容如下,里面的内容随时改变(CAL.TXT)
name.exe
TEL.exe
Home.exe
CAL.exe
DAY.txt
UDY.doc
SIZE.EXE
作者: HAT
时间: 2008-6-26 18:11
@echo off
for /f %%a in (CAL.txt) do start %%a
[
Last edited by HAT on 2008-6-26 at 06:12 PM ]
作者: tmkai
时间: 2008-6-27 00:03
如果楼主里面放上N多不同型的程式,要执行应该还会根据不同的类型去调用不同的程式的吧。如果全是EXE 貌似start /wait <cal.TXT就可以吧!
向各位大侠请教
作者: yishanju
时间: 2008-6-27 00:11
楼主写的病毒么
、
作者: lxmxn
时间: 2008-6-27 19:04
Quote: |
Originally posted by tmkai at 2008-6-27 00:03:
如果楼主里面放上N多不同型的程式,要执行应该还会根据不同的类型去调用不同的程式的吧。如果全是EXE 貌似start /wait <cal.TXT就可以吧!
向各位大侠请教 |
|
这样start行吗? 很怀疑……
作者: seuseuseu
时间: 2008-9-8 14:12
顶起来
作者: seuseuseu
时间: 2008-9-8 14:13
顶起来
作者: terrytong
时间: 2008-9-8 17:53
Quote: |
Originally posted by tmkai at 2008-6-27 00:03:
如果楼主里面放上N多不同型的程式,要执行应该还会根据不同的类型去调用不同的程式的吧。如果全是EXE 貌似start /wait <cal.TXT就可以吧!
向各位大侠请教 |
|
一直在找个能一个一个按着顺序来执行的批处理。也就是下个程序要等上个程序执行完后才运行.
作者: HAT
时间: 2008-9-8 21:14
标题: Re 8楼
start /?
Quote: |
Starts a separate window to run a specified program or command.
START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B] [command/program]
[parameters]
"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 |
|