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?
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"
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
ASKER