Page 1 of 1

Can not run vbs file from exe file remotely.

Posted: Sun Apr 19, 2015 8:29 pm
by rastek
Something happened and I can not run any vbs file remotely via using produced exe file, before it was running but right now I can not.

ALso I tried running though bat file but no work.

I use Run application

as also in the code

the interesting thing is that it Runs when I run directly from Renorex Studio but does not run when called through exe file.

Report.Log(ReportLevel.Info, "Application", "Run application 'D:\testfiles\scripts\vbs\capture.vbs' with arguments '' in normal mode.", new RecordItemIndex(1))
Host.Local.RunApplication("D:\testfiles\scripts\vbs\capture.vbs", "", "D:\testfiles\scripts\vbs", False)
Delay.Milliseconds(0)

I also tried in user code using below code
Shell ("Wscript.exe D:\testfiles\scripts\vbs\capture.vbs")
again works in Renorex but not via exe file..

Anyone has any idea on this ?

Thanks,
Rasim.

Re: Can not run vbs file from exe file remotely.

Posted: Mon Apr 20, 2015 1:55 pm
by krstcs
Try this:

Code: Select all

Host.Local.RunApplication("WScript.exe", "D:\testfiles\scripts\vbs\capture.vbs", "D:\testfiles\scripts\vbs", False)