I'm having trouble accessing a file with the Scripting.FileSystemObject.
The following works great:
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set folder = fs.GetFolder("E:\webfiles\directory"
However, when I try to use the UNC, I get a path not found error. For instance:
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set folder = fs.GetFolder("\\webserver\webfiles\directory"
This gives "path not found". The directory is a hidden directory, and I've tried putting the $ at the end as well. It gives me the same error.
I can access \\webserver\webfiles\directory$ from the run line, and have verified that when the asp page modifies the E:\webfiles\directory it is modifying the \\webserver\webfiles\directory$, so there doesn't seem to be a problem with an incorrect mapping.
Any help would be appreciated.
The following works great:
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set folder = fs.GetFolder("E:\webfiles\directory"
However, when I try to use the UNC, I get a path not found error. For instance:
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set folder = fs.GetFolder("\\webserver\webfiles\directory"
This gives "path not found". The directory is a hidden directory, and I've tried putting the $ at the end as well. It gives me the same error.
I can access \\webserver\webfiles\directory$ from the run line, and have verified that when the asp page modifies the E:\webfiles\directory it is modifying the \\webserver\webfiles\directory$, so there doesn't seem to be a problem with an incorrect mapping.
Any help would be appreciated.