Yes, you can programmatically add sites using cfexecute and .wsh files if you have windows scripting host installed and enabled on the server.
The scripts to do is should already be on your server in the InetPub\AdminScripts directory. Something like this: <CFSET argArray = ArrayNew(1)> <CFSET argArray[1] = "F:\InetPub\AdminScripts\mkw3site.vbs"> <CFSET argArray[2] = "-r"> <CFSET argArray[3] = "f:\sites\#trim(form.sitename)#\user\wwwroot"> <CFSET argArray[4] = "-t"> <CFSET argArray[5] = "#trim(form.sitename)#"> <CFSET argArray[6] = "-h"> <CFSET argArray[7] = "local.#trim(form.sitename)#.com"> <CFEXECUTE ARGUMENTS="#argArray#" NAME="c:\winnt\system32\cscript.exe" TIMEOUT="3"/> <BR> <B>Site Created</B> Spike > -----Original Message----- > From: Neil Robertson-Ravo [mailto:[EMAIL PROTECTED]] > Sent: 10 September 2002 16:39 > To: [EMAIL PROTECTED] > Subject: [ cf-dev ] Auto adding a site into IIS > > > Does anyone know if its possible to add a new site via COM or > whatever to IIS using ColdFusion? > > I need to automatically add a site adding headers/log file paths etc.. > > Neil > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
