Search:

Type: Posts; User: Json

Search: Search took 0.10 seconds.

  1. Thread: Launching a File

    by Json
    Replies
    7
    Views
    1,646

    Re: Launching a File

    How about this then.



    Runtime.getRuntime().exec("cmd /c start c:/work.txt");


    // Json
  2. Thread: Launching a File

    by Json
    Replies
    7
    Views
    1,646

    Re: Launching a File

    Ok, will this only be run on windows systems then I take it?

    // Json
  3. Thread: Launching a File

    by Json
    Replies
    7
    Views
    1,646

    Re: Launching a File

    start seems to be an invalid command.

    This works for me.


    Runtime.getRuntime().exec("notepad.exe C:/WORK.txt");

    // Json
  4. Thread: Launching a File

    by Json
    Replies
    7
    Views
    1,646

    Re: Launching a File

    First of all, what exactly do you want to do, open the text file?

    Do something like this maybe.


    Runtime.getRuntime().exec("start C:/WORK.txt");

    // Json
Results 1 to 4 of 4