Results 1 to 1 of 1
  1. #1
    MisterAndy is offline Member
    Join Date
    Dec 2009
    Location
    Tacoma, Washington, USA
    Posts
    1
    Rep Power
    0

    Post 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:
    Java Code:
    Runtime.getRuntime().exec("mstsc");
    And that DOES open the program, but I'd like to open a specific FILE with that program. Any ideas?

    (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 09:36 PM.

Similar Threads

  1. Remote SQL Server Connection
    By saso1310 in forum JDBC
    Replies: 2
    Last Post: 05-15-2009, 08:39 AM
  2. Different Files Open in File -> Open Workspace
    By mgm2010 in forum JCreator
    Replies: 0
    Last Post: 04-11-2009, 03:14 PM
  3. Open source Email client (Desktop Based)
    By success21061985 in forum Advanced Java
    Replies: 1
    Last Post: 01-18-2009, 08:00 PM
  4. How to read a .EML file present on Remote Desktop?
    By anil@prokarma in forum New To Java
    Replies: 0
    Last Post: 06-12-2008, 03:05 PM
  5. Applet and remote file
    By Preethi in forum Java Applets
    Replies: 0
    Last Post: 06-03-2008, 06:54 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •