Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulate IIS with VFP 1

Status
Not open for further replies.

FoxAll

Programmer
Jun 13, 2003
49
CA
Hi,

I need a program in VFP to create new website in IIS. My program already create the folder everything I need (in including all HTML pages, ready to start.
But each time I run this program (when I have a new client), I have to manually open IIS manager then create a new website, edit the bounding, root folder, application pool, default document, then start the web-site. aaarrrrk ! :(

Is there a way to add this part in my program? like a script that can be run from VFP to create and stat website automatically so I don't have to open IIS manager anymore?

Thanks for you help

Martin
 
OK gang,

I think I found what I need, sorry to waste your time with my problems.

EXPORT
%windir%\system32\inetsrv\appcmd list apppool " /config /xml > c:\myapppool.xml
%windir%\system32\inetsrv\appcmd add apppool /in < c:\myapppool.xml

IMPORT
%windir%\system32\inetsrv\appcmd list site " /config /xml > c:\mywebsite.xml
%windir%\system32\inetsrv\appcmd add site /in < c:\mywebsite.xml

Thanks to all anyway

Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top