I have a problem accessing a mapped drive in ColdFusion. I have \\server\files\sharing mapped to z:\ . If I run this code, it says that the directory exists for the full path, but not for the displayed one:
<cfscript> fullPath = "\\server\files\sharing\reports"; mappedPath = "z:\reports"; WriteOutput("fullPath exists: #DirectoryExists(fullPath)#<br/>"); //YES WriteOutput("mappedPath exists: #DirectoryExists(mappedPath)#"); //NO </cfscript>
I did some Googling and found several people with the same problem, but the solution always used the full path. Is there a reason ColdFusion will not be able to see or access the mapped drive? And if so, are there any workarounds (perhaps a system call to get the full path to the mapped drive)?
coldfusion windows file networking
Kip
source share