I am trying to run code while a status box displays. I open a box and then try running my code and then I shut the box. The box functions work fine but the RunWithLogon command does not run. To confirm that the RunWithLogin command was not being ingnored I commented out the runas_pass variable and the job threw an error. What am I doing wrong?
Title = "Loading Client Pack"
Main = " ":@CR:"Running Client Pack Install"
runas_user = "********"
runas_pass = "********"
runas_domain = "********"
param2 = "test.dat"
client_pack_name = StrCat("c:\Data\Source\", param2)
Install_Params = StrCat("c:\Data\Source\InstallMSP.exe /s /icp " ,client_pack_name, " /p REBOOT=ReallySuppress SKIPDEPLOYMENTCHECK=1")
strCmd = Environment("COMSPEC")
RunWithLogon ("c:\Data\Source\InstallMSP.vbs", Install_Params, "", @NORMAL, @WAIT, runas_user, runas_domain, runas_pass,1)