Since iisreset stops all web sites and we cannot have any downtime on one of
our sites, I decided to look for a way to stop just the 1 website I need to
stop on the server. The script I found to do this is
%windir%\system32\iisweb.vbs.
From the command line line, this script works as expected with the following
usage:
cscript.exe %windir%\system32\iisweb.vbs /stop sitename.com
I ran this in Nant with no luck. Here is the Nant <exec> task I used:
<exec program="cscript.exe" commandline="c:\windows\system32\iisweb.vbs
/stop sitename.com" />
This failed... here are the details from the log:
Input Error: Can not find script file "c:\windows\system32\iisweb.vb
I have checked and double checked the file names.... they are all good. I
even tried creating the successful command line call as a batch file and
then called that batch from Nant. That, too, gave me the same error.
Does anyone have any clues on how to resolves this? Better yet, does anyone
know another Nant friendly method of stopping just one web site and not
completely resetting IIS?
Many thanks,
Peter
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users