Recycling Application Pool using NAnt Script
I tried out several different syntax to run a .vbs script ( C:\windows\system32\iisapp.vbs ) to recycle Application Pool. The arg way didn't work. Things that work directly work on Windows command line doesn't necessary work with NAnt script directly. Eventually I resolved it by using this:
<target name="ResetAppPoolForSNAPP25">
<exec program="${vbscript.executable}"
commandline = "C:\windows\system32\iisapp.vbs /a AppPoolForSNAPP25 /r"
/>
</target>
0 Comments:
Post a Comment
<< Home