PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197 [RESOLVED] VB to create Remote Desktop Connection-VBForums
I'm looking to make an App that I can use to launch the app MS Remote Desktop Connection.
Specifically, I'd like it to open a connection to the specified server that I want and automatically start the connection.
Does anyone know how I would do this?
I know that if I look at the "save as" file it creates (RDP file) I can get the info. I need to make the connection. So I think this is really a three parter.
Would this be the easiest way to go:
1) Have the program open the RDC App.
2) Create a temp file, with the information I need to create (basically, create a temp RDP file)
3) Open the RDC file
4) After connection is made, delete the temp file.
I bet I could do all of this from runtime, or since windows will automatically open RDP files with the RDC app, I could probably skip step one. So basically, how do I get windows to open an RDP file during runtime?
You can shellexecute the rdp and pass the appropriate switches. No file needed.
This is just an example that works but you can dynamically locate the System32 directory and error trap for the supported OS'.
/f will make it open in fullscreen mode. If you dont want fullscreen then you can use the /w and /h to specify the height and width of the normal sized window.
screen mode id:i:1 should be the window mode in the rdp file.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
→ The Comprehensive Guide to Cloud Computing
A complete overview of Cloud Computing focused on what you need to know, from selecting a platform to choosing a cloud vendor.