G
Guest
Folks:
Appreciate if someone could correct the syntax of this batch file. This
batch file just won't run properly.
Appreciate if someone could correct the syntax of this batch file. This
batch file just won't run properly.
Appreciate if someone could correct the syntax of this batch file. This
batch file just won't run properly.
-------------------------------------------------------------------------
START /WAIT FOR /F %%I IN (C:\MyTextFile.txt) DO (
SET VAR=%%I
@ECHO %VAR%)
-------------------------------------------------------------------------
Folks:
Appreciate if someone could correct the syntax of this batch file. This
batch file just won't run properly.
-------------------------------------------------------------------------
START /WAIT FOR /F %%I IN (C:\MyTextFile.txt) DO (
SET VAR=%%I
@ECHO %VAR%)
Thanks for you solution. It works well. I did some additional tests and
these issues came up.
(1) The script works without "delims". What is the purpose of "delims"?
FOR /F %%I IN (C:\MyTextFile.txt) DO (
SET VAR=%%I
ECHO %VAR%
C:\Program Files\MyEXEfile.exe)
(2) I have always used "START /WAIT" in my scripts. The idea is to
allow certain tasks to complete before looping again
Now, however, this command is actually preventing the main
script from working. Is it wise to use "START /WAIT" .
foxidrive said:On Tue, 25 Mar 2008 07:30:00 -0500, <JoJo> wrote:
start /wait is used for multi-threaded executables which will launch a
task
and return to the batch file immediately. If you need it within the loop
for such an executable then you can use it, but most vanilla batch
commands
are single threaded and don't require start /wait (or start /w).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.