Hello all,

Ok, so I am trying to do a few things here, but it seems fairly straight forward. I want KACE to verify a document exists. If it does find the file I want to run a batch file after that to clean up some of the folders around the file. If it fails to find the document I want to que a file sync and get the document. Then I want the script to pause for the file sync to complete and then continue to check the verification again. I am thinking the best way to do this would be do add a pause directly into the XML itself, but when I tried to do that it wouldn't save. Any ideas on how I can make this script work?

Answer Summary:
2 Comments   [ - ] Hide Comments


  • Oh I forgot to mention that both the batch file and the file sync work just fine independently. I am just having issues tying the two together. If anyone has an idea on how to make the batch file execute after the file sync or how to make my previous idea work that would be helpful.
  • This looks like a problem requiring a solution that monitors process activity and kicks off the next step in the sequence when a specific process terminates. This requires vbscript rather than a batch file.
    • Thank you very much! I will look into going about it that way.
Please log in to comment

Answer this question or Comment on this question for clarity


I found an answer that works! I had set the KACE script to force a check on the client side using runkbot 6 0 and then wait for completion before running the .bat file. 
Answered 09/15/2014 by: Jhogue
Senior Yellow Belt

Please log in to comment
Glad you found the solution, for future reference:

If you also own a k2000, there is a file on it called ksleep to allow the use of pauses.  You just use "ksleep ##"  (## = the time is seconds).  I use this a lot on both my k2000 post tasks and also k1000 scripts.  As long as you are licensed for the k2000 you can use this file.
Answered 09/16/2014 by: SMal.tmcc
Red Belt

  • Yes we also have the k2000. I haven't quite started my training on it yet, so I will look forward to this feature! That seems like it would have been a useful alternate.
    • look for it at
Please log in to comment
I know this is an old topic, but here's another answer. (From https://ss64.com/nt/timeout.html) 

Ping a loopback adapter for the amount of time you want to pause for, and check "Wait for completion."

Launch “C:\Windows\System32\cmd.exe” with params “/c PING -n 301”.
Answered 01/23/2018 by: ondrar
Purple Belt

Please log in to comment