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?

Thanks
Answer Summary:
Cancel
2 Comments   [ + ] Show Comments

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

Answers

2
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
2
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
      \\ikbox\peinst\winpe_build\amd64\windows\system32
      or
      \\ikbox\peinst\winpe_build\x86\windows\system32
Please log in to comment
Answer this question or Comment on this question for clarity

Share