How can I run the Remote Desktop Connection hidden or not display any error messages?
Posted on 2009-06-29
When certain conditions are met, the program I have created runs a RDP file. The entire purpose of this RDP file is to run 1 single program on the terminal server and once that program has completed, to shut down the RDP connection (not coded yet). It is very possible (and likely) that the client may already be logged into the same terminal server through RDP (using a different user name than what is in the RDP file).
I currently am trying to figure out the best way for the following:
Is it possible to run the RDP file hidden or at least minimized/not focused so that it would not affect what the client is doing - making the client unaware this is happening would be best.
What is the best way to terminate the RDP connection after the program is completed?
My current setup allows the session to last 1 minute before it displays a warning that you have 2 minutes to save your files before the session ends. I would prefer not to see this error message at all and after the 1 minute is up just end the session and close down that particular RDP.
I've created both parts of this program:
The program that runs the RDP from the client when certain conditions are met and the program that the RDP runs after logging into the terminal server.
I want this to all happen in a way that the client is completely 100% unaware that it is happening. What is the best way to go about this?