Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launch RDC sessions from logon script 1

Status
Not open for further replies.

Roadki11

MIS
Joined
Mar 23, 2005
Messages
1,097
Location
US
Can anyone tell me what im missing here? trying to get the following code to launch a preconfigured rdp session from a logon script. If i double click it, it works fine, if i run it at logon it doesnt launch the rdp session but it does fire off that msgbox.

Code:
'Start RDP Session to TS
wshShell.Run ("mstsc.exe TServer.rdp")
MsgBox "code ran fine this far"

Thanks,

RoadKi11
 
Give it a full path to the RDP session file.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Thanks markdmac. i had the full path to the rdp file in the script when i wrote it, but took it out when i cleaned it up. Should have worked fine because the script was in the same path as the rdp file. anyway, putting the path back in was exactly what i needed to do. Thanks for the pointer.

RoadKi11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top