You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris <ka...@hotmail.com> on 2004/02/12 11:22:59 UTC

How to determine whether a file exist or not in a remote host by using java?

Howdy,

I want to confirm if  there is a file in a romote machine, 
How could I do using Java?

TIA
Regards.


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


Re: How to determine whether a file exist or not in a remote host by using java?

Posted by jerome moliere <jm...@nerim.net>.
> Howdy,
>
hi,
> I want to confirm if  there is a file in a romote machine,
> How could I do using Java?
>
what is your context ? if you use tomcat (not uncommon on this mailing
list :))
you may use a servlet to enable your client to ask to do something on the
web server filesystem...

If you use SMB protocol (samba or windows sharing) you may look at the
excellent jcifs smaba project (jcifs.samba.org)

HTH
Jerome
-- 
Auteur cahier du programmeur Java tome 2 - Eyrolles 10/2003
http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212111941


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