Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > VCL

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2011, 05:34 AM
Shadow Shadow is offline
Member
 
Join Date: Mar 2011
Posts: 39
Default Coping & Replacing Contents of a folder

I did a google search for 'delphi copy and replace', but nothing came up but one thing that did catch my eye was a delphi program called 'Copy Folder Test'. I downloaded the program and I noticed that there was a 'replace' option.

http://i.min.us/iljvg0.JPG

I looked over the code over and over, but I couldn't find the section where the replace option was coded.

So at the moment, in my code, I am using the 'CopyDir' function which just basically copies folders and its contents.

Is there such a function where the directory is copied and replaced?

Thanks in advanced
Reply With Quote
  #2  
Old 04-26-2011, 12:07 PM
Donovan Donovan is offline
Senior Member
 
Join Date: Jan 2011
Posts: 150
Send a message via Skype™ to Donovan
Default

Have a look at this, it allows you to choose whether or not to over right the existing files

http://www.swissdelphicenter.ch/torr...ode.php?id=101
Reply With Quote
  #3  
Old 04-26-2011, 08:59 PM
Shadow Shadow is offline
Member
 
Join Date: Mar 2011
Posts: 39
Default

Thanks Donovan, I'll take a look at it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.