I use psexec to run a batch that registers files without a problem.
However, our build runs under a domain account credentials and the
domain account is an admin on the target server is question.
But, I wouldn't expect you to get a hang. Is the file in use?
BOb
________________________________
From: Zachary B. Wheeler [mailto:zwhee...@sddmtech.com]
Sent: Tuesday, February 17, 2009 2:55 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] psexec
I was able to use psexec to start and stop IIS on a remote machine
however, I was not able to unregister and unregister a .dll on that same
remote machine. So my target ran a bat file that
1. Stopped iis - this was fine
2. Unregister - dlls - here it just hangs
? does psexec allow the registery to modified on the remote machine (or
is this something it will not allow).
Mybat file setup.bat
Iisweb /stop aspApplication
Regsvr32 -u x:\dlls\aspDlls.dll
Target
<target name="runsetup">
<exec program="psexec" basedir="c:\pstools" workingdir=".">
<arg line =\\${server}"/>
<arg line =-u ${username}"/>
<arg line =-p ${password}"/>
<arg line =-c c:\svn\trunk\apps\setup.bat/>
<arg line =-w x:\nant_s_t_bat"/>
</exec>
</target>
Zachary B. Wheeler
Principal
www.sddmtech.com
"We Listen To Our Customers"
Contact: 202.528.8969
Toll Free: 866.830.4147
Fax: 202.478.2886
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users