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


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

file upload to a particular location.

Posted By: Jayakumar     Posted Date: March 19, 2010    Points:2   Category :Windows Application
hi,

in windows application,c#.

i have a txtbox and 2 buttons(browse, save);

how to pick a particular file and to save that in a particular location.

i have picked a particular file but i done how to save so suggest me.

regards
jai

Responses
Author: Lalij Mer             
Posted Date: March 19, 2010     Points: 5   
Author: Jayakumar             
Posted Date: March 19, 2010     Points: 5   

hi look is this right...


FileInfo str = new FileInfo(FileName);
File.Copy(textBox13.Text, Application.StartupPath + "D:\\Sahana-Projects\\" + str.Name);


jai

Author: Sagar Pardeshi             
Posted Date: March 26, 2010     Points: 5   
Author: Sagar Pardeshi             
Posted Date: March 26, 2010     Points: 5   
Author: Narayanan             
Posted Date: March 15, 2012     Points: 20   

Hi,
Use this method:
File.Move


Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


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