Can not run vbs file from exe file remotely.

Ask general questions here.
rastek
Posts: 157
Joined: Wed Aug 06, 2014 12:00 pm

Can not run vbs file from exe file remotely.

Post by rastek » Sun Apr 19, 2015 8:29 pm

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.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Mon Apr 20, 2015 1:55 pm

Try this:

Code: Select all

Host.Local.RunApplication("WScript.exe", "D:\testfiles\scripts\vbs\capture.vbs", "D:\testfiles\scripts\vbs", False)
Shortcuts usually aren't...