[RESOLVED] xcopy issue
Results 1 to 6 of 6

Thread: [RESOLVED] xcopy issue

  1. #1
    Join Date
    Jun 2001
    Posts
    448

    Resolved [RESOLVED] xcopy issue

    Hello all. I want to use xcopy to copy a file from within a folder on C: to a mapped drive Z:

    The file is a .mdb file and it's location is C:\AACC DATABASE\atlanta6.mdb. The location where I want the copy to go is identical except for the drive letter which is Z:

    The folder is already on the Z: drive so just the file needs to be copied. What's happening is I'm getting an "access denied" error message. Here's the command I'm using:

    C:\Documents and Settings\squjam>xcopy "C:\AACC DATABASE\*.*" "Z:\AACC\" /k /v /y /x /s /r

    One or more of those switches may be redundant or unnecessary as I began just trying one switch after another to resolve issues as they arose. Now I'm stuck at the current error, "access denied". I've checked the permissions on the file and the folder and all looks well there. The AACC DATABASE folder on the C: drive is shared and I looked at the permissions for the share as well; again everything looks fine.

    Any ideas and help would be great.

  2. #2
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,429
    Is the file open by another user? Have you tried copying it to a different location (on the same drive as the original file)?

  3. #3
    Join Date
    Jun 2001
    Posts
    448
    Great question. The file isn't open and I did just successfully copy it to the Z: drive location. Now that I have a copy there I'd like to create a xcopy command that will overwrite the existing file with the one from the C: drive.

  4. #4
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,429
    Links:

    Command Line Switches for the XCOPY Command
    http://support.microsoft.com/kb/128756

    Switches That You Can Use with Xcopy and Xcopy32 Commands
    http://support.microsoft.com/kb/289483

  5. #5
    Join Date
    Jun 2001
    Posts
    448
    [SOLVED]

    I used this command in a batch file and setup a scheduled task and it did the trick.

    COPY /Y "C:\AACC DATABASE\atlanta6.mdb" "Z:\AACC\"

  6. #6
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,429
    Thanks for the update.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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