We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,089 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

C# How to move and replace

Hi,

I am new to C#. Can someone possibley help me? I have gone through the msdn site and i am still lost:/

I have a form with a few buttons.

QUESTION1
Button1
I want to move and replace a folder. If the folder exists its replaced by the new one.

QUESTION2
Button2
I would like it to move and replace a file if it exists it is replaced by the new one.

QUESTION3
I found the snippets for it i think. How do i actually add the folder or files to my form/program and actually determine the location of the folder/files added within the application/form?

i really want to replace files and folders in an old game with updated files/folders and i have no idea how to do it however i have everything ready to go can someone please link me to some tutorials that i havent been able to find or possibley even type how to do so? Please

2
Contributors
1
Reply
2 Days
Discussion Span
10 Months Ago
Last Updated
2
Views
bob855
Newbie Poster
1 post since Jul 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Take a look at System.IO.File and System.IO.Directory on the MSDN (Google first hit)

Those two classes should give you everything you need.

Ketsuekiame
Veteran Poster
1,193 posts since May 2010
Reputation Points: 541
Solved Threads: 153
Skill Endorsements: 8

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.2938 seconds using 2.63MB