Results 1 to 2 of 2

Thread: Copy a file from c: to a:

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Posts
    93
    I am trying to write a program that backs up a database from the c drive to the a drive. I want to use a command like the xcopy dos command.

    Such as copy c:\database to a:\database

    Thanks
    BJ

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316


    filecopy "c:\myfile.txt","a:\myfile.txt"

    From the help
    FileCopy Statement

    Copies a file.
    Syntax FileCopy source, destination

    The FileCopy statement syntax has these named arguments:


    source
    String expression that specifies the name of the file to be copied. The source may include directory and drive.

    destination String expression that specifies the target

    filename. The destination may include directory and drive.

    Remarks
    If you try to use the FileCopy statement on a currently open file, an error occurs.

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