H
Howard Brazee
I run a batch job to copy files from one computer to another. The
computer I am backing up from has "My Documents" shared.
I get the following error:
Z:home\HPIM0049.JPG
Access denied
Sure enough, when I look at that file from the "to" computer, no
preview is available. When I look at that file in the "from"
computer, preview works fine. I even saved the viewed file from the
windows viewer.
I have been able to copy other directories between these two XP Pro
computers using this logic. How do I fix what's weird with this
particular file and go to the next one?
@DIR Z: 2>NUL | FIND /I "DIR" >NUL
@If ErrorLevel 1 echo "no Drive Z: found"
@If not ErrorLevel 1 echo "drive Z: found"
@If ErrorLevel 1 goto :Finale
Xcopy "Z:*.*" "%USERPROFILE%\My Documents\*.*" /E /D /I /Y
:Finale
pause
computer I am backing up from has "My Documents" shared.
I get the following error:
Z:home\HPIM0049.JPG
Access denied
Sure enough, when I look at that file from the "to" computer, no
preview is available. When I look at that file in the "from"
computer, preview works fine. I even saved the viewed file from the
windows viewer.
I have been able to copy other directories between these two XP Pro
computers using this logic. How do I fix what's weird with this
particular file and go to the next one?
@DIR Z: 2>NUL | FIND /I "DIR" >NUL
@If ErrorLevel 1 echo "no Drive Z: found"
@If not ErrorLevel 1 echo "drive Z: found"
@If ErrorLevel 1 goto :Finale
Xcopy "Z:*.*" "%USERPROFILE%\My Documents\*.*" /E /D /I /Y
:Finale
pause