Thanks very much donniea21. Your suggestion works when I type in the path as suggested...
Runtime.getRuntime().exec("C:\\Program Files/Microsoft Office/Office/Winword.exe test.doc");
If the file name (test.doc) was stored in a String variable, how would I include that instead of...
When invoking an application using the Runtime exec() method, is it possible to also open a specific file in the application? For example, if you are wanting the user to be able to view a file in Word, I know how to invoke word, but not with the appropriate file open for the user to see.
Many...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.