Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 94041 invoked from network); 21 May 2002 21:09:14 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 May 2002 21:09:14 -0000 Received: (qmail 14052 invoked by uid 97); 21 May 2002 21:09:12 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 14011 invoked by uid 97); 21 May 2002 21:09:11 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 13999 invoked by uid 98); 21 May 2002 21:09:11 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <04bc01c2010c$61580930$1219570f@ranier> From: "Steve Loughran" To: "Ant Users List" References: <00b001c200f5$95579e10$3f640a0a@sseal.secretseal.com> <040c01c200f7$11e5cc30$6401a8c0@darden.virginia.edu> <00be01c200f8$f51070e0$3f640a0a@sseal.secretseal.com> Subject: Re: Translating UNC paths to local paths Date: Tue, 21 May 2002 14:13:39 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- 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. ok > 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: