Converting a UNC path to a physical file path

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wonder if someone can help with this -

I 'm creating an IISVirtualDirectory, and setting its Path property to the
physical path I want to reference. This works fine when I have a standard
file path - 'C:/Test' - however I sometimes have a UNC path -
'//remoteComputer/Test' - and IIS appears to choke when it's given that.

So, is there any way of translating a UNC path to the physical path on the
remote computer? ie: Translating ' //remotecomputer/Test' to 'C:/Test' ?

Thanks!
Simon
 
hi. go to your server and try creating a network map referencing the network
resource.. i.e.. z:\

make sure that you set automatic reconnection to the network share..
 
Thanks, Alan, but unfortunately this doesn't quite do it, partly because I'm
not wanting a manual process- if I wanted to do I could create the virtual
directory by hand directly. Surely it is possible to translate a UNC path to
its system specific file path through some API?
 
Back
Top