Results 1 to 11 of 11

Thread: Permission Denied --- FileCopy Statement

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Bayamon, Puerto Rico
    Posts
    10

    Question Permission Denied --- FileCopy Statement

    Hello everybody:
    I want an application to do a copy of a *.mdb file in a floppy disk using the FileCopy statement. After I made some changes in the database with the application and after I made the FileCopy statement, I get the error "Permission Denied". Even after I execute the FileCopy statement, I close every connection to the database. The code where I do the FileCopy is right below:

    sourcefile = "C:\CLIENTS.MDB"
    destinationfile = "A:\CLIENTS.MDB"
    FileCopy sourcefile, destinationfile

    Also, I tried to made a duplicate in another location in the hard drive and I keep recieving the same error. Is there something that I need to do? Any answer is welcome. PLEASE THIS IS VERY IMPORTANT. I'M ALL TIED IF I DON'T SOLVE THIS PROBLEM. Have a nice day everybody.



    Luis E. Cuadrado
    Last edited by lcuadrado; Apr 28th, 2001 at 07:26 PM.
    Luis E. Cuadrado
    [email protected]

  2. #2
    Tygur
    Guest
    Make sure the disk isn't write-protected, if you didn't already. (That's all I can come up with)

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Bayamon, Puerto Rico
    Posts
    10
    I already check the floppy disk and is not write-protected. Also, I tried to copy the file in another location in my hard drive and I still have the same problem. PLEASE HELP!!!
    Luis E. Cuadrado
    [email protected]

  4. #4
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Can you do the same process manually?

  5. #5
    Member
    Join Date
    Apr 2001
    Posts
    57
    Is the file itself set to read only?

  6. #6
    Tygur
    Guest
    DigitalD0g,
    If a file is read only, it only meand it can't be changed. It can still be copied. Test it out. Try using FileCopy to copy a read only file. It'll have no trouble copying it.

  7. #7
    Member
    Join Date
    Apr 2001
    Posts
    57
    Tygur,

    LOL... I actually knew that, I just wasn't thinking. Files on CD-Rs are Read Only and they can be copied.

    I guess the next questions would be:
    Is the floppy damaged? Can copies of different files be made from the same, or other floppies?

  8. #8
    scoutt
    Guest
    Sounds like the database is still resident in memory somewhere. see if you can copy the file manually, without the program, as Nucleus suggested.

    Scoutt

  9. #9
    Member
    Join Date
    Apr 2001
    Posts
    57
    A reboot should clear it from resident memory if that is the problem.

  10. #10
    Lively Member reivaJ's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    84

    Talking

    maybe it is because the file is in use

  11. #11

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Bayamon, Puerto Rico
    Posts
    10

    Talking

    reivaJ is right. I didn't realize that the file was in use by Visual Data Manager. As soon as I close the Visual Data Manager window, the FileCopy statement worked just fine. I want to thank all the people that help me with this problem I really appreciate it. See ya soon.
    Luis E. Cuadrado
    [email protected]

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