Article View: aus.computers.java
Article #516Re: File Copy from UNC path - FIXED
From: Gary Perkins
Date: Wed, 09 Aug 2000 00:00
Date: Wed, 09 Aug 2000 00:00
39 lines
1789 bytes
1789 bytes
Works fine under 1.2.2
Thanks
Gary Perkins <garyp@bgm.com.au> wrote in message
news:Rj1k5.79651$N4.2006183@ozemail.com.au...
> Yeah did that but no good.
>
> Thanks anyway, I think it might ne a Windows NT permission thing (even
> though I have set the share permissions correctly) but can copy the file
by
> UNC path in a command prompt.
>
> Thanks anyway
>
>
> Benjamin Johnston <s355171@student.uq.edu.au> wrote in message
> news:Pine.OSF.4.21.0008090735410.24376-100000@student.uq.edu.au...
> > > Have a java application in a Windows NT environment and want ot use
the
> File
> > > object as such;
> > >
> > > File inputFile = new File("\\server\share\filename.txt");
> > >
> > > This does not work but works if I use a mapped drive letter? Any
ideas?
> >
> > Maybe you need to escape those slashes;
> > File inputFile = new File("\\\\server\\share\\filename.txt");
> >
> > But otherwise, no idea.
> >
> > -Benjamin Johnston
> > s355171@student.uq.edu.au
> >
>
>
Technical Details
Message-ID:
<S74k5.79855$N4.2008759@ozemail.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<IuNj5.78474$N4.1989905@ozemail.com.au> <Pine.OSF.4.21.0008090735410.24376-100000@student.uq.edu.au> <Rj1k5.79651$N4.2006183@ozemail.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,270ac1284850bc4d X-Google-Attributes: gid10d6db,public From: "Gary Perkins" <garyp@bgm.com.au> Subject: Re: File Copy from UNC path - FIXED Date: 2000/08/09 Message-ID: <S74k5.79855$N4.2008759@ozemail.com.au> X-Deja-AN: 656187206 Distribution: world References: <IuNj5.78474$N4.1989905@ozemail.com.au> <Pine.OSF.4.21.0008090735410.24376-100000@student.uq.edu.au> <Rj1k5.79651$N4.2006183@ozemail.com.au> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Trace: ozemail.com.au 965791346 203.12.191.247 (Wed, 09 Aug 2000 13:22:26 EST) Organization: OzEmail Ltd, Australia X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 09 Aug 2000 13:22:26 EST Newsgroups: aus.computers.java