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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

could you not put this in the users startup folder that way when they logon it will run?

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

it will only run for when they logon to a new session not rejoin an exisiting.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
redpoppyAuthor Commented:
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.
redpoppyAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.