What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 35473 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > how to get the file path in C#.net ...
Kavi.Sirius

how to get the file path in C#.net

Replies: 3 | Posted by: Kavi.Sirius on 5/15/2012 | Category: C# Forums | Views: 419 | Status: [Member] | Points: 10  


hi,
i want to get the file path using c#.net
i am using the folderviewcontrol to view the all folder and files in particular users

if the user know the filename
they enter the file name in textbox
it show the path for that file in another textbox

Thanks in advance..

Regards
Kavi.n


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Siva524
Siva524  
Posted on: 5/15/2012 7:01:52 AM
Level: Starter | Status: [Member] | Points: 25

according to your requirement first of all we need to check whether the file exists and also check type of file extension(there may be same name with different extensions).
if file exists and extension also same then
get the file path.

Kavi.Sirius, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Perfect.Chourasia@Gmail.Com
Perfect.Chourasia@Gmail.Com  
Posted on: 6/8/2012 3:30:08 AM
Level: Starter | Status: [Member] | Points: 25

String File=Server.mappath("/Upload") + Filename;

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://sandeep-chourasia.blogspot.com/

Kavi.Sirius, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Ajay.Kalol
Ajay.Kalol  
Posted on: 6/8/2012 4:58:11 AM
Level: Starter | Status: [Member] | Points: 25

Use "Server.MapPath("/path/filename"); "

http://ajaypatelfromsanthal.blogspot.in

Kavi.Sirius, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 4:03:10 PM