|
-
October 7th, 2009, 12:17 PM
#1
[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.
-
October 7th, 2009, 12:23 PM
#2
Is the file open by another user? Have you tried copying it to a different location (on the same drive as the original file)?
-
October 7th, 2009, 01:05 PM
#3
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.
-
October 7th, 2009, 01:47 PM
#4
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
-
October 9th, 2009, 09:48 AM
#5
[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\"
-
October 9th, 2009, 02:35 PM
#6
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
-
Forum Rules
|
|