IntelliJ Java IDE
The moose likes I/O and Streams and the fly likes open a file located on server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "open a file located on server" Watch "open a file located on server" New topic
Author

open a file located on server

nabou diack
Greenhorn

Joined: Oct 17, 2001
Posts: 13
Hi I'm trying to open a file located on my server. My server's name is omni
this works when i want to open a file located on my computer :
Runtime.getRuntime().exec("cmd /c start c:"+File.separator+"sdiack"+File.separator+"java"+File.separator+"timesheetserver"+File.separator+"feuilledetemps.html");}
this does not work when i try to open a file located on server omni :
Runtime.getRuntime().exec("cmd /c start omni:"+File.separator+"test"+File.separator+"files"+File.separator+"dir1"+File.separator+"file1.html");}

Please help! thanks
nabou diack
Greenhorn

Joined: Oct 17, 2001
Posts: 13
I found a way . thanks
jacq carballo
Ranch Hand

Joined: Feb 10, 2002
Posts: 42
can you share you solution, please.
tia
 
 
subject: open a file located on server
 
Threads others viewed
Running Batch File from Java program
how to open word document in different server
Cannot see exec()'ed app
Calling script
problem with Runtime.getRuntime().exec when running java in .bat
IntelliJ Java IDE