.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to access a network folder throgh C#.Net code

Posted By: priya     Posted Date: June 21, 2010    Points:2   Category :C#
HI,

I need to access a folder which is in different computer in the same network

How can i get using C# code?

Thanks
Priya

Responses
Author: Kirtan          Accepted Answer   
Posted Date: June 21, 2010     Points: 10   

you need to write UNC path that is accessible through system.IO name space .


for example

FileInfo f = new FileInfo("\\server\sharedfolder");




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend