Results 1 to 1 of 1
- 12-04-2009, 08:24 PM #1
Member
- Join Date
- Dec 2009
- Location
- Tacoma, Washington, USA
- Posts
- 1
- Rep Power
- 0
Open an RDP file with Remote Desktop Connection
New to Java Forums. :D
I frequently remote into my home computer, and I'm writing an application to make life a little easier where that is concerned.
So far, the app pings my computer, and if it doesn't get a reply, it sends a "wake up on lan" "magic packet" to wake up the computer, then continues pinging (up to 4 more times) until it gets a response.
Once it gets a reply, I want to call an .RDP file, which is just a plaintext XML-style file that stores Remote Desktop Connection settings.
I know that in order to call a program, in this case RD, I just use this:
And that DOES open the program, but I'd like to open a specific FILE with that program. Any ideas?Java Code:Runtime.getRuntime().exec("mstsc");
(Note: To simplify it, just telling me how to open a .txt and force it to open in notepad.exe would be fine, as I assume it's the same idea. )Last edited by MisterAndy; 12-04-2009 at 08:36 PM.
Similar Threads
-
Remote SQL Server Connection
By saso1310 in forum JDBCReplies: 2Last Post: 05-15-2009, 07:39 AM -
Different Files Open in File -> Open Workspace
By mgm2010 in forum JCreatorReplies: 0Last Post: 04-11-2009, 02:14 PM -
Open source Email client (Desktop Based)
By success21061985 in forum Advanced JavaReplies: 1Last Post: 01-18-2009, 07:00 PM -
How to read a .EML file present on Remote Desktop?
By anil@prokarma in forum New To JavaReplies: 0Last Post: 06-12-2008, 02:05 PM -
Applet and remote file
By Preethi in forum Java AppletsReplies: 0Last Post: 06-03-2008, 05:54 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks