CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Copy a random file

    With VB6 I have large random data files. How can I include a routine in which the user simply clicks to make a copy of his file in a "Backup" folder.
    (ie kill "c:\vb\backups\testfile.Dat": copy "c:\vb\testfile.Dat" to "c:\vb\backups\testfile.Dat")
    ...so that there is always a current backup copy in case of major errors.

    email [email protected]


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Copy a random file

    use the FileCopy statement

    filecopy "c:\vb\testfile.Dat", "c:\vb\backups\testfile.Dat"





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured