writing file to a drive on the network
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vijay75_naidu
Posted On:   Thursday, August 22, 2002 11:06 PM

Hi

I need to write a file to any drive on the local NETWORK without using Socket programming in java.Can any body help with a small example.

regards
vijay

Re: writing file to a drive on the network

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, August 23, 2002 07:37 AM

An AFS file is accessed just like any local filesystem, through "/afs/cellname/".



An NFS partition is accessed just like a local drive, on any Unix-based system, if it is already mounted or auto-mounted (e.g. "/home/username" is often auto-mounted now). Otherwise if you have access, you can runtime exec the "mount" command.



On a DOS/Windoze-based system, you can probably use the "UNC path" e.g. "\servernamepartitionnamefilename". But if for some bogus reason you still need to use an old-fashioned "drive letter", then you need to runtime exec the "net use" command.

Re: writing file to a drive on the network

Posted By:   Thomas_Hackel  
Posted On:   Friday, August 23, 2002 04:28 AM

when you have mapped the drive (c: d: e: etc.) its like accessing local files :). use java.io.File which represents a filename (not the file!)
About | Sitemap | Contact