Here is the issue:
Need to call a vbs using another vbs. Last vbs to be called can also be call from command line using:
"c:\scrpts\myVBS.vbs" /param1:"c:\scripts\log.txt" /param2:"Val2" /param3:"Val3" /param4:"Val4"
This works fine. But when attempting to execute via another vbs it fails. I have tried many different variations but this will give the idea:
Set Shell = CreateObject("WScript.Shell")
Shell.Run "c:\scrpts\myVBS.vbs" /param1:"c:\scripts\log.txt" /param2:"Val2" /param3:"Val3" /param4:"Val4"
Need to call a vbs using another vbs. Last vbs to be called can also be call from command line using:
"c:\scrpts\myVBS.vbs" /param1:"c:\scripts\log.txt" /param2:"Val2" /param3:"Val3" /param4:"Val4"
This works fine. But when attempting to execute via another vbs it fails. I have tried many different variations but this will give the idea:
Set Shell = CreateObject("WScript.Shell")
Shell.Run "c:\scrpts\myVBS.vbs" /param1:"c:\scripts\log.txt" /param2:"Val2" /param3:"Val3" /param4:"Val4"