Link to home
Start Free TrialLog in
Avatar of redpoppy
redpoppy

asked on

Starting vbs script in RDC

Hi Experts,

I want to automatically run a vb script to launch an application when a remote desktop connection is initiated.

I've tried using the "Program" tab, clicking the "start program" box and specifying "C:\Users Shared Folders\Office\launch.vbs" in the "program path" and  C:\Users Shared Folders\Office as the "start in" folder.

The RDC connection is started but the script execution fails with "error(193) the initial program cannot be started"

I've tried doing this in 2 separate steps: making the RDC, then executing the script from a remote desktop shortcut and it works OK.

Can anyone help please?
ASKER CERTIFIED SOLUTION
Avatar of LHT_ST
LHT_ST

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of redpoppy
redpoppy

ASKER

Hi LHT - Thanks for your fast reply, much appreciated. I've just tried out your suggestion and it looks like a possibility - I'm not sure about the fact that it will only happen for a new session - I'll do some checking and also see if there are any other suggestions. Thanks again.
I've accepted this answer in view of the fact that I didn't get any other suggestions and that this solution seems to work - thanks for your help