commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artamonov, Juri" <jartamo...@fusionone.com>
Subject RE: [VFS] Execute operation on a FileObject
Date Thu, 12 Apr 2007 12:33:25 GMT
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:mario@ops.co.at] 
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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message