DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: copyfile generates an error

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    copyfile generates an error

    [Originally posted by Itay]

    when i try using the api to copy a file
    it generates an error and closes my studio
    the destanation file exists and i set the api to true to overwrite i checked the paths and their good i dont understand why the error occurs plz help.

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:copyfile generates an error

    [Originally posted by John Citizen]

    If you are having trouble getting the API to copy files then dont you use it. This simple function will perform your task for you.

    Function CopyMyFilePlease(sFrom As String, sTo As String)

    On Error Resume Next
    Kill sTo
    FileCopy sFrom, sTo
    On Error GoTo 0

    End Function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center