PC Review


Reply
Thread Tools Rate Thread

Batch - Access denied

 
 
Mike
Guest
Posts: n/a
 
      17th Nov 2006
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

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      18th Nov 2006
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.

"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied, Access Denied- like a broken record! Sam Windows Vista General Discussion 6 3rd Mar 2008 02:11 AM
ftp access denied and administrator access to local policy denied =?Utf-8?B?SW50ZXJuZXQgRXhwbG9yZXIgVXNlciBHZXRzIFJ1 Microsoft Windows 2000 0 6th Jul 2007 02:16 PM
Access 2003 - Create PDF batch filenames from Access report =?Utf-8?B?SmltRw==?= Microsoft Access VBA Modules 2 9th Aug 2006 10:16 AM
You were denied access because: Access denied by access control list. William T Bonzo Windows XP Internet Explorer 4 3rd Feb 2006 10:23 PM
Batch file denied permission to run... =?Utf-8?B?TWFyaw==?= Microsoft Access 1 16th Aug 2005 02:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 AM.