Batch - Access denied

M

Mike

Hi,

Im trying to write a .bat file to copy a file "desktop.ini" to a serie
of folders. Here's an part of it :

copy c:\customizeFolders\desktop.ini "C:\Documents and Settings\Soum\My
Documents\Download"

The problem is that it tells me that i dont have access to the folder.
I booted in safe mode and gave my user account ownership to the folder
(mine is an admin account), then giving ownership to the whole admin
groupe, but it still didnt work.

strange thing is that i still have access to my docs, but not my
docs\download in the batch process.

Btw i have xp home SP2.

thanx alot,

Mike
 
P

Pegasus \(MVP\)

You might be trying to copy to the wrong folder. Try this instead:

copy c:\customizeFolders\desktop.ini "C:\Documents and
Settings\%UserName%\My
Documents\Download"

You also need to consider the possibility that desktop.ini is
protected. It's usually hidden. Try to copy some other file
in order to make sure.
 

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