ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hal Hildebrand \(web\)" <Hal.Hildebr...@hellblazer.com>
Subject Translating UNC paths to local paths
Date Tue, 21 May 2002 18:30:07 GMT
Probably no one knows how to do this, but I thought I'd give it a whirl.

I need to translate Windows UNC paths to their canonical path on the
remote machine.

For example:

    \\ss04\root\some\mapped\dir

Would map to the directory (on host ss04):

    D:\some\dir

I have searched high and wide for a way to do this with no avail.  The
logical thing, from Java is to maybe run the Java process in this
directory, then do something like:

    new File(".").getCanonicalPath()

Which returns

    \\ss04\root\some\mapped\dir

Anyone out there have a clue as to how to do this?

Thanks.

-Hal
______
science does not remove the terror of the gods
www.hellblazer.com


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message