ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: Translating UNC paths to local paths
Date Tue, 21 May 2002 21:13:39 GMT

----- Original Message ----- 
From: "Hal Hildebrand (web)" <>
To: "Ant Users List" <>
Sent: Tuesday, May 21, 2002 11:54 AM
Subject: Re: Translating UNC paths to local paths

> I'm not afraid of low-level NT hacking, so if that's necessary...
> What I'm trying to do is remote deployment and administration of NT
> services - which happen to be implemented in Java - in Ant.

> The procedure I have is to ask the administrator for a remote deployment
> directory.  This is in UNC format.  I then copy the deployment files
> over there, but then I need to execute remotely (to install the NT
> service, and other tasks).  This is no problem using psexec, but the
> problem is psexec requires (for the obvious reason) the file name in an
> absolute form on the remote system.

we have per-system config files for that kind of thing
> Wait a minute.  I just tried psexec with a UNC file name, which would be
> the same on both the remote and local computers and it worked.  So I
> think that's the ticket - just deal with UNC paths.  Thank "Bob".

you could also issue a net use command and parse the results. 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message