• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

Opening RDP from VB


Im trying fire RDP from a VB6 app populating the Computer, User, Password and Domain boxes with relevant details?

Anyone any idea how to do this??

Thanks in advance!
2 Solutions
Sorry, but what does your RDP mean?
LFMSupportAuthor Commented:
Sorry, I mean Remote Desktop Connection through Windows XP.
Launching RDP programatically requires nothing more than the following:

Shell "%SystemRoot%\System32\mstsc.exe"

For the command line options, take a look at http://technet2.microsoft.com/WindowsServer/en/Library/f47ce263-f72e-469d-bf14-6605b7f4cce51033.mspx?mfr=true

Or: http://www.ss64.com/nt/mstsc.html

From what I can see, without manually creating an RDP file, you can only set the remote machine to connect to, by using /v:<server[:port]>

From what I can see with RDP formats (opened up and RDP file in a hex editor) they aren't too hard to edit. You need to take a look at one. For some reason Notepad and Wordpard refuse to show the correct characters, but if you open it up in a hex editor (I'm using Hex Workshop) then it should reveal itself to be quite self explanatory. The password hash section is not something you're going to be able to change though...

Only other option I can see is using APIs (like FindWindow, etc) to edit the values of the textbox after the program appears.
LFMSupportAuthor Commented:
Thanks burningmace and sethi!

you might wanna take a look at http://www.experts-exchange.com/Programming/Programming_Languages/Q_21871071.html
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now