HighTechTalks DotNet Forums  

UNC ro file URI and vice versa

Dotnet Framework (SDK) microsoft.public.dotnet.framework.sdk


Discuss UNC ro file URI and vice versa in the Dotnet Framework (SDK) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Edward Diener
 
Posts: n/a

Default UNC ro file URI and vice versa - 01-06-2005 , 12:45 PM






Surely there must be some .NET functionality which converts between the UNC
file format, including the Windows local file format, and the file URI (
file://etc. ) format, and vice versa. But no matter how hard I look I can
not find it. Does anyone know where this might be ?



Reply With Quote
  #2  
Old   
vivekJain_m
 
Posts: n/a

Default Re: UNC ro file URI and vice versa - 03-25-2006 , 02:49 AM







cool!!!!

there is a solution to do the required things

create a Uri

Let 's have server 10.10.10.10 and there we have a shared folder XMl
to acess it we use \\10.10.10.10\xml

like Uri serverUri=new Uri("File://10.10.10.10/Xml");
now to convert it into Unc above format use
serverUri.Localpath

u will get \\\\10.10.10.10\\xml [escaped in C#]


every UNC path acn be constructed with the FIle URI in the above way.

thanks
Solution Provider



--
vivekJain_m
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1332148.html


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.