XP batch script - Exec command with timeout?

Caporegime
Joined
18 Oct 2002
Posts
29,493
Location
Back in East London
Hi All,

Hopefully a quick one, I'm updating an existing batch script that launches an app, then parses a "results" file that the app produces. I'd like to add a timeout to this script so it does not wait forever for the app to exit, but I can't find the command/option for it - anyone know how to do this?

To perhaps better explain:
Code:
exec "some command"
# this will not proceed until the above command completes, no matter how long it takes...
IF NOT EXIST %RESULTSFILE% (
	set EXITCODE=1
)
# other stuff removed...

Thanks
 
Last edited:
Back
Top Bottom