Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

Opening RDP from VB

Hello.

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!
0
LFMSupport
Asked:
LFMSupport
2 Solutions
 
junglerover77Commented:
Sorry, but what does your RDP mean?
0
 
LFMSupportAuthor Commented:
Sorry, I mean Remote Desktop Connection through Windows XP.
0
 
burningmaceCommented:
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.
0
 
LFMSupportAuthor Commented:
Thanks burningmace and sethi!

you might wanna take a look at http://www.experts-exchange.com/Programming/Programming_Languages/Q_21871071.html
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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