I have the code below running fine on my notebook (Localhost), but when I take it up to the Web server, it will not run find any files. I think it has to do with the fact that my notebook has test files local (in a normal directory) and the web server has a virtual directory setup. Can't fingure out how to set it up with a Virtual Directory.
Code:
strLocalPath = server.mappath("docs\" & sel) 'the "doc" is the name of the subfolder whre the doc files are in, "sel" is a form text box
If objLogFileFSO.FileExists(strPath) Then
local directory structer is
-wwwroot (C:\inetpub\wwwroot)
------ProductTags (C:\inetpub\wwroot\ProductTags)
---------HMCTAGS (C:\inetpub\wwroot\productTags\hmctags)
Server directory structure is (Web (IIS) server name = Server-1)
- wwwroot (F:\inetpub\wwwroot)
------ProductTags (F:\inetpub\wwwroot\ProductTags)
----------HMCTAGS (virtual directory set up in IIS called HMCTAGS
points to \\Server-2\TAGS\HMCTAGS\)
I think I understand the difference between using the server.mappath and not using it? virtual path of c:\intetpub\wwwroot would = / if using server.mappath ?
Looked thru reference materials (book, Active Server Pages 3.0) and did a search here but still lost.
strLocalPath = server.mappath("/ProductTags/" & sel) on the server does work since it's not a virtual directory, but as soon as I add "HMCTAGS" (virtural directory) no dice.
Thanks
J.C.