How do I make a copy of a file in Delphi?

Source: Internet
Author: User

http://zhidao.baidu.com/link?url= Nyazcpexabat8m3qqaepcf1zr7q-ok4hpauniaryphcbmiwyslr1txott8759htr1ebrey-4dydtdrtwnyff_aHow do I make a copy of a file in Delphi? Report | Share | 2009-07-26 10:37fanxiaoyue | browse 7,824 times Programming Languages
I want to copy the existing file 123.txt from the C drive to the D disk and rename it to 123-the Delphi implementation of how to backup. txt
2009-07-27 08:35#2016 year high quality new standard full upgrade! #The questioner is adopted by
Use
CopyFile (' C:\123.txt ', ' d:\123-backup. txt ', False);

The last False if set to True is if the D disk exists 123-backup. txt does not replace the source file, set to False instead

How do I make a copy of a file in Delphi?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.