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

LHT_STCommented:
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

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

0

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.
0
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
0
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
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.