1.

Solve : Need help with a batch file?

Answer»

I am installing AIM via a batch file process. Due to the way AIM installs itself I can't seem to get it to install silently as there are no switches that I have found that can do this. ANYWAY everything seems to be fine until the install finishes , at that point it pops a box up and asks to click close. I would like to somehow SCRIPT for a way to either click the close button for the user or somehow put into the script a timeout with a taskkill or something where after say 40 seconds the batch would kill setup.exe and continue to execute ?

Basically a way to force a continuation of the script after a set amount of time In Vista and Win7 you can USE the timeout command and then kill the task.

launch setup.exe with

start "" "c:\folder\setup.exe"
timeout -t 40
taskkill blah blahThanks but we still use WINDOWS xp will that also work there ? Use PING instead.

start "" "c:\folder\setup.exe"
ping -n 40 localhost >nul
taskkill blah blah



Discussion

No Comment Found