Access Denied

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
 
K

Kerry Brown

It may be a path error. Using "Z:*.*" the current focus has to be in the
directory you want to copy from. The path should be explicit as in
"Z:\path\*.*" or "Z:\*.*". Another possible problem is the destination. You
don't need "*.*" on the end.
 
G

Guest

Try this first. It is a simple task.
1) On both machines, make sure they are in the same "Workgroup"
2) Run the network wizard and make sure that you have selected to share files.

If you can see one way but not the other, this will fix it.

Hope this helps.
 
M

Malke

To said:
Try this first. It is a simple task.
1) On both machines, make sure they are in the same "Workgroup"
2) Run the network wizard and make sure that you have selected to share
files.

If you can see one way but not the other, this will fix it.

Errmm.. not quite. The OP's issue is not a problem with network sharing
since he is already able to do that. In any case, XP computers do not need
to be in the same Workgroup to share files/printers and there are other
aspects to file sharing that you've omitted.

The OP should follow Kerry Brown's suggestion.

Malke
 
P

Patty

Errmm.. not quite. The OP's issue is not a problem with network sharing
since he is already able to do that. In any case, XP computers do not need
to be in the same Workgroup to share files/printers and there are other
aspects to file sharing that you've omitted.

Can you explain to me how to share files/printers between XP computers that
are not in the same Workgroup? I always thought the computers needed to be
in the same Workgroup in order to share files/printers with each other.

Or, can you direct me somewhere to get more information? Thanks so much!
Greatly appreciated.

Patty
 
M

Malke

Patty said:
Can you explain to me how to share files/printers between XP computers
that
are not in the same Workgroup? I always thought the computers needed to
be in the same Workgroup in order to share files/printers with each other.

Or, can you direct me somewhere to get more information? Thanks so much!
Greatly appreciated.

In XP and earlier Windows operating systems, Workgroups are just a cosmetic
and organizational device. They provide no security and have no impact on
file/printer sharing. Here's a link to that and other networking myths by
MVP Steve Winograd:

http://www.bcmaven.com/networking/myths.htm

Now, this may change with Vista. I have a vague memory of reading that
you'll need the same Workgroup to share with Vista, but I may be recalling
incorrectly and I haven't tried it yet here.

Malke
 
H

Howard Brazee

It may be a path error. Using "Z:*.*" the current focus has to be in the
directory you want to copy from. The path should be explicit as in
"Z:\path\*.*" or "Z:\*.*". Another possible problem is the destination. You
don't need "*.*" on the end.

If that is part of the problem, it isn't all of it. When I open up
the source directory using Windows Explorer on the destination
directory, and try to view that photo, it cannot read it.
 
B

Bob I

Howard said:
If that is part of the problem, it isn't all of it. When I open up
the source directory using Windows Explorer on the destination
directory, and try to view that photo, it cannot read it.

Perhaps you don't have Read rights only List folder contents?
 
H

Howard Brazee

Try this first. It is a simple task.
1) On both machines, make sure they are in the same "Workgroup"
2) Run the network wizard and make sure that you have selected to share files.

If you can see one way but not the other, this will fix it.

They both have the same workgroup. Most of the pictures on the
source computer can be fully accessed - only ones that have been
created on other computers have this problem.
 
H

Howard Brazee

I moved that particular .jpg to the desktop of my source computer,
then I ran the .bat file that copied close to 1000 files.

Then I moved that .jpg back, and ran the .bat file, and it failed at
that same file.

This doesn't happen with native files, only those that are copied from
e-mail or elsewhere.
 
H

Howard Brazee

Then I moved that .jpg back, and ran the .bat file, and it failed at
that same file.

This doesn't happen with native files, only those that are copied from
e-mail or elsewhere.

Earlier I saved that file after viewing it with the Windows default
viewer - no change. This time I opened it with Paint and saved it -
and was able to run my batch file from the destination computer.

This recurring problem appears to have something to do with ownership.
Maybe the computer thinks it is still open. Maybe it just has a
glitch in who it think owns it.

But I have no idea how to stop this from happening.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top