You can do this to change the IIS default directory from the command line (notice the command path):
c:\inetpub\adminscripts\>cscript adsutil.vbs set w3svc\1\root\path "<path to directory>" c:\inetpub\adminscript\>iisreset You could make a batch file for each of your websites and just doubleclick it to make the change take effect. Keep in mind that this only changes the directory and nothing else. You can get a *complete* list of settings that are changable if you download the "metabase explorer" (Google it) tool and look at the metabase. You can change the anonymous user account, password, authentication methods, and everything else about IIS using adsutil.vbs. - Matt Small ----- Original Message ----- From: "Ian Skinner" <[EMAIL PROTECTED]> To: "CF-Community" <cf-community@houseoffusion.com> Sent: Friday, July 06, 2007 1:21 PM Subject: IIS API > Is there an API or something that I can programatically change the home > directory of my default website in the IIS console on my WinXP > workstation? I maintain different websites for my different projects > and since IIS in WinXP can only have one running website, I need to go > into IIS console and change it when I want to move from project to > project. > > Since getting a full server OS for my workstation is not in the near > future, I wondered if there was some way I could create a batch or maybe > a web app that would allow me to quickly change from one web site to > another. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:237944 Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5