My goal is to start shell scripts on remote server. Ok, I will take a
look on the link you provided. Thanks.
>Than get the filename of your fileObject
I know this is another question, but do you know if there any API for
getting for example String of full path to the file (for example:
drive:\folder\file)? What I see in version 1.0 that I can get only the
string in VFS format but not the full path in File object or String
object.
Thanks,
Juri.
-----Original Message-----
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 3:09 PM
To: Jakarta Commons Users List
Subject: Re: [VFS] Execute operation on a FileObject
Hi!
First, please don't cross post between dev and user list ... uhmm ... do
not cross post at all .... stay on the user list.
> I have instance of FileObject and I would like to start the associated
file.
>
> Do you know if there is and implemented execute operation on a
FileObject object?
>
VFS do not support any native call, so you can't do something else than
get the filename of your fileObject and use java.lang.Runtime.exec or
use the JDIC [1] project which allows a more integrated way how to start
files, e.g. urls staring a browser, doc files starting word etc
Hope this helps.
Ciao,
Mario
[1] https://jdic.dev.java.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]