Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / October 2004

Tip: Looking for answers? Try searching our database.

Converting a UNC path to a physical file path

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon - 28 Oct 2004 20:49 GMT
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
[Alan Flores] - 28 Oct 2004 21:19 GMT
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..

> I wonder if someone can help with this -
>
[quoted text clipped - 8 lines]
> Thanks!
> Simon
Simon - 29 Oct 2004 01:04 GMT
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?

> hi. go to your server and try creating a network map referencing the network
> resource.. i.e.. z:\
[quoted text clipped - 13 lines]
> > Thanks!
> > Simon

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.