1.

Solve : STARTING A BAT FILE FROM A PARENT BAT FILE?

Answer»

I'm stumped with this. I have a parent BAT file and within it I'm starting a SECOND
BAT file. My objective is to have it run in the background while the parent GETS on
with concurrent work. I don't want to have to wait for the second BAT to finish.

I've tried   -  parent BAT   and within it -  'start jobx.BAT'.  When I open the parent a cmd window starts and then a second window displays because of the start cmd.
My problem is the second BAT doesn't really run. The window displays and just seems to be waiting for something, perhaps for something to run.

I've also tried 'start /B jobx.bat' and the job just doesn't run i.e. what it is designed to do doesn't get DONE

I didn't think the concept of starting something and having it run in the background would be this difficult. Obviously I've missed something here.

When I change the start to 'call jobx.bat it' performs as designed but the parent will wait for it to complete which is not my objective. 

Hopefully someone may have SEEN this ISSUE and has a solution.
Try this:

start "" cmd /c "C:\Documents and Settings\user\My Documents\batchfile.bat"



Discussion

No Comment Found