🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #514

Re: File Copy from UNC path

#514
From: Benjamin Johnston
Date: Wed, 09 Aug 2000 00:00
14 lines
1104 bytes
> 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: <Pine.OSF.4.21.0008090735410.24376-100000@student.uq.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <IuNj5.78474$N4.1989905@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: Benjamin Johnston <s355171@student.uq.edu.au>
Subject: Re: File Copy from UNC path
Date: 2000/08/09
Message-ID: <Pine.OSF.4.21.0008090735410.24376-100000@student.uq.edu.au>
X-Deja-AN: 656004820
References: <IuNj5.78474$N4.1989905@ozemail.com.au>
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Complaints-To: news@uq.edu.au
X-Trace: bunyip.cc.uq.edu.au 965770612 10104 130.102.2.20 (8 Aug 2000 21:36:52 GMT)
Organization: University of Queensland
Mime-Version: 1.0
NNTP-Posting-Date: 8 Aug 2000 21:36:52 GMT
Newsgroups: aus.computers.java