1.

Solve : temporization with do?

Answer»

I use a cmd like

for %%i in (D:\../*.txt) C C:\..\qcheckerV5.vbs - B - I D:\..\%%~NI%%~xi - O D:\..\%%~ni%%~xi

and I would like this "do" to be launched all the 10seconde or better this "do" to be launched only one time the action before was finished.
is that it POSSIBLE?
how could I make to "parameter" do?I'm not sure I understand the question. You need to provide a return mechanism so that control is returned to the batch file after the VBS runs. Use either a call or start command when launching the VBS file. Call will wait for the script to run and loop again. Start will do the same thing with /WAIT parameter. Without the /WAIT you will have multiple copies of the script running concurrently.

Are you LOOKING for a 10 second delay between script executions or do you just want the whole run to be over in 10 seconds? CHOICE has a timer parameter but is not available on XP unless you steal a copy from a Win9x machine.

There are POTENTIAL problems here. What script engine is the default? Exactly what does the VBS script do and how is it constructed? When writing run units with multiple external processes, it's important to keep track of where control lies and the method for transferring it.

Hope this helps. my problem is that with the script:
for %%i in (D:\../*.txt) C C:\..\qcheckerV5.vbs - B - I D:\..\%%~ni%%~xi - O D:\..\%%~ni%%~xi
a file "i" is taken in the folder of data, it is treated by qchecker and the result is send in a folder result,
a 2nd file "i" is taken, it is SENT in qchecker...
but it is sent in qchecker before the tratement of the 1st file is finished so there is a problem of liscence.
I would like that this 2nd file is sent only one time the tratement of the 1st one is finished.Instead of C:\..\qcheckerV5.vbs, use call C:\..\qcheckerV5.vbs. The loop will wait for the VBS script to finish before continuing.

I thought my previous post explained it rather well. :-/



Discussion

No Comment Found