🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #515

Re: File Copy from UNC path

#515
From: Gary Perkins
Date: Wed, 09 Aug 2000 00:00
27 lines
1547 bytes
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: <Rj1k5.79651$N4.2006183@ozemail.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <IuNj5.78474$N4.1989905@ozemail.com.au> <Pine.OSF.4.21.0008090735410.24376-100000@student.uq.edu.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
Date: 2000/08/09
Message-ID: <Rj1k5.79651$N4.2006183@ozemail.com.au>
X-Deja-AN: 656051780
Distribution: world
References: <IuNj5.78474$N4.1989905@ozemail.com.au> <Pine.OSF.4.21.0008090735410.24376-100000@student.uq.edu.au>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Trace: ozemail.com.au 965779825 203.12.191.247 (Wed, 09 Aug 2000 10:10:25 EST)
Organization: OzEmail Ltd, Australia
X-MSMail-Priority: Normal
NNTP-Posting-Date: Wed, 09 Aug 2000 10:10:25 EST
Newsgroups: aus.computers.java