Batch file to Delete Old Virtual Directories.
Posted
by Michael Freidgeim
on Geeks with Blogs
See other posts from Geeks with Blogs
or by Michael Freidgeim
Published on Sun, 09 May 2010 01:45:32 GMT
Indexed on
2010/05/11
2:55 UTC
Read the original article
Hit count: 363
How to manage Web sites and Web virtual directories by using command-line scripts in IIS 6.0
rem http://support.microsoft.com/kb/816568
rem syntax: iisvdir /delete WebSite [/Virtual Path]Name [/s Computer [/u [Domain\]User /p Password]]
REM list all directories and create batch of deletes
iisvdir /query "Default Web Site"
echo "Enter Ctrl-C if you want to stop deleting"
Pause
iisvdir /delete "Default Web Site/VDirName1"
iisvdir /delete "Default Web Site/VDirName2"
...
© Geeks with Blogs or respective owner