Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > copy file from one folder another
 

copy file from one folder another

need help to copy the file from one folder to another.

moreover, how can i code to get the path , (where my application is installed) so that i can copy the file from my application folder to this pathC:\Documents and Settings\ByProxy\Application Data\Microsoft\Device Emulator folder

Tri Mandir Prajapati  Tuesday, March 17, 2009 11:40 AM
Hi Tri,

You can call the Move method of the System.IO.File class to move files to a new location.

> how can i code to get the path(where my application is installed)

Call the Application.StartupPath property to get the path the application is run.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Linda Liu  Thursday, March 19, 2009 10:13 AM
Hi Tri,

You can call the Move method of the System.IO.File class to move files to a new location.

> how can i code to get the path(where my application is installed)

Call the Application.StartupPath property to get the path the application is run.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Linda Liu  Thursday, March 19, 2009 10:13 AM

You can use google to search for other answers

Custom Search

More Threads

• Permission Denied :'getObject'
• Naka and Mari - Is Terrarium fun over ?
• Please post here if you are running a Terrarium server.
• Taskvision Server in different location!
• Install Sheild
• Terrarium code - why am I not suprised
• FTP In window form
• Background gradient
• IssueVision How do I add new users to database?
• INameSpaceTreeControl can be resized?