Batch - Access denied

  • Thread starter Thread starter Mike
  • Start date Start date
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
 
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.
 
Back
Top