Hello - and thank you for the hints. Unfortunately script_name or getcwd return the location of the script in the filesystem (let's say c:\test\test.pl). This can be mapped in to various addresses using the Virtual Folder option of IIS. If my site is at d:\webroot and test is aliased as http://localhost/somename, I can find my location as c:\test\test.pl or /somename/test.pl but have no hints on the existence of d:\webroot