No More Web Path Discrepancy on Desktop
Even though I should, I don't like to develop on my desktop. The site is in the root on the web, but in a subfolder on localhost. I can change the setting in IIS, but that is kind of a pain. Fortunately, this is no longer a problem.
My friend Jason Holden put together a one-line .bat file that takes care of the problem. Just put it in the folder that you want IIS to recognize as the web root and run the file (a double-click on the icon does it all!).
This does require that you are running IIS and have the inetpub folder off of the drive root (which is traditional). It uses the adsutils.vbs file in the adminscripts folder of inetpub (if it doesn't work, make sure that file exists).
He just showed this to me recently, so I have just started using it. Already it had made my life easier. Soon, I can eliminate code I have to put in some of my work to check if the site is being run from localhost.
It is a free download, so try it out yourself!
I didn't know, but I am not surprised to find that other tools already existed to do that. This one happens to be free and really easy to use.
More significantly to me, it solved a problem that I had but didn't realize that I had. Which is to say that I realized it was a pain to switch in IIS every time, but I had never given any more thought to it. Jason solved a problem which I had failed to even adequately contemplate.
Good to know of other resources as well though.