Results 1 to 2 of 2
  1. #1
    baltimore is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Run a exe in java

    Hi, I've been trying to get this to work, and i cant even begin to figure it out. All i want to do, is open C:\windows\notepad++.exe and then print on screen, "loaded"

    Thanks.

  2. #2
    Join Date
    Aug 2007
    Posts
    25
    Rep Power
    0

    Default

    Try
    Java Code:
    Runtime.exec("C:\\windows\\notepad++.exe");
    
    or 
    
    System.exec("C:\\windows\\notepad++.exe");
    Joe

Posting Permissions

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