Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Batch file: A command that last forever

$
0
0

I have a batch file with few commands

*************************

command1

command2

command3

*************************

if I execute command 2, it will have info massage comes out and it would last forever. So I won't be able to execute command3. 

[02/Jul/2014:10:10:33] [Info] [CA WebAgent IPC] [3500] [CSmIpcEvent::WaitForEven
t] Time-out interval elapsed, but the event's state is nonsignaled
[02/Jul/2014:10:10:33] [Info] [CA WebAgent IPC] [3500] [CSmIpcEvent::WaitForEven
t] Time-out interval elapsed, but the event's state is nonsignaled
[02/Jul/2014:10:10:33] [Info] [CA WebAgent IPC] [3500] [CSmIpcEvent::WaitForEven
t] Time-out interval elapsed, but the event's state is nonsignaled
[02/Jul/2014:10:10:34] [Info] [CA WebAgent IPC] [3500] [CSmIpcEvent::WaitForEven
t] Time-out interval elapsed, but the event's state is nonsignaled
[02/Jul/2014:10:10:34] [Info] [CA WebAgent IPC] [3500] [CSmIpcEvent::WaitForEven

 Now I am doing it spwan a new window to run command 2

******************

command 1

start cmd /c command 2

command 3

****************

so that I can run command 3.

But how can I close the windows of command 2 in the batch script without killing the process that command 2 running

Is there a way the mother windows can exit the child windows?

Thanks and regards,
Eric


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>