Search
Home IIS.NET Forums IIS 5 & IIS 6 General Check if App pool and virtual directory exists.
Last post Mar 11, 2013 06:10 AM by namrathareddy
2 Posts
Mar 06, 2013 05:53 AM|LINK
HI Experts,
Iam using IIS 6.0, Am developing some bat script to create App pool and virtual directory on the machine using below code.
C:\WINDOWS\system32\iisvdir /create "Default Web Site" Test services %WebServicePath% /s %ServerName%
C:\Inetpub\AdminScripts\adsutil.vbs CREATE w3svc/AppPools/TestAppPool IISApplicationPool
they are working fine, but i need to check before executing them.like if exists type script.
Do any one have any idea on this..needed urgently please.
228 Posts
Microsoft
Mar 08, 2013 05:09 AM|LINK
Hi,
namrathareddy they are working fine, but i need to check before executing them.like if exists type script.
For your issue, you can try to get all App pool and virtual directory before create. You can try to do as follows:
ENUM Path /P
It is used to to enumerate the paths only.
For details, please check the link below:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true
Best wishes,
Mar 11, 2013 06:10 AM|LINK
HI,
I am unable to use this..Could you please show me a sample working piece of code which check for if exists app pool and application .
thanks
namratharedd...
2 Posts
Check if App pool and virtual directory exists.
Mar 06, 2013 05:53 AM|LINK
HI Experts,
Iam using IIS 6.0, Am developing some bat script to create App pool and virtual directory on the machine using below code.
C:\WINDOWS\system32\iisvdir /create "Default Web Site" Test services %WebServicePath% /s %ServerName%
C:\Inetpub\AdminScripts\adsutil.vbs CREATE w3svc/AppPools/TestAppPool IISApplicationPool
they are working fine, but i need to check before executing them.like if exists type script.
Do any one have any idea on this..needed urgently please.
Catherine Sh...
228 Posts
Microsoft
Re: Check if App pool and virtual directory exists.
Mar 08, 2013 05:09 AM|LINK
Hi,
For your issue, you can try to get all App pool and virtual directory before create. You can try to do as follows:
It is used to to enumerate the paths only.
For details, please check the link below:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store
namratharedd...
2 Posts
Re: Check if App pool and virtual directory exists.
Mar 11, 2013 06:10 AM|LINK
HI,
I am unable to use this..Could you please show me a sample working piece of code which check for if exists app pool and application .
thanks