I have some VB scripts that I call from my Watch process VB script by using the Run method of the Shell object.
Having the scripts in free standing files allows me to modify them without changing my Watch config.
This works OK most of the time, but occasionally the scripts start and hang. I haven't figured out why.
Are there any restrictions on the Watch scripts that mean calling scripts asynchronously like this will cause problems?
Code:
      strCmdLine = """c:\Program Files\WHSNJobStore\print_on_demand.vbs"" """+strFolder+""" """+strPrinter+""""
      Set objShell = CreateObject("WScript.Shell")
      objShell.run strCmdLine
Thanks
Stuart