Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

getruntime issue

Thread view: 
bchihab@gmail.com - 30 Jun 2006 00:10 GMT
Hi,

Can someone tell me why when I do this :

start->run-> \\someMachineOnNetwork\someFolder\someFile.txt
it works perfectly

But when I try the same using a signed applet

command = "\\\\someMachineOnNetwork\\someFolder\\someFile.txt";
Runtime rt = Runtime.getRuntime();
Process child = rt.exec(command);

I have an IOException

Thanks
Thomas Fritsch - 30 Jun 2006 13:32 GMT
> But when I try the same using a signed applet
>
> command = "\\\\someMachineOnNetwork\\someFolder\\someFile.txt";
Change the line above to
  command =
   "cmd.exe /c \\\\someMachineOnNetwork\\someFolder\\someFile.txt";
> Runtime rt = Runtime.getRuntime();
> Process child = rt.exec(command);
>
> I have an IOException

Signature

Thomas

bchihab@gmail.com - 30 Jun 2006 20:21 GMT
Worked perfectly

Thanks!

> > But when I try the same using a signed applet
> >
[quoted text clipped - 6 lines]
> >
> > I have an IOException


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.