Link to home
Start Free TrialLog in
Avatar of PeterHing
PeterHingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Batch file to End Process

Hi All,

I have a Citrix Agent that appears to stop if the network connection is not available. It should come back to life when the network connection comes back, but sometimes it doesn't.

Is there a way using a batch file, that I can kill the process, then after say 5 seconds, re-load the agent (C:\Folder\MyFolder\agent.exe)?

Many Thanks,

Pete
ASKER CERTIFIED SOLUTION
Avatar of superblades
superblades

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Echo Off
TaskKill /IM agent.exe
Ping 127.0.0.1 -n 5 >NUL
C:\Folder\MyFolder\agent.exe