views:

510

answers:

1

Hi everyone. I have a simple .bat (move.bat) file in the SendTo folder which moves files and directories from any location to a specified folder by using the context menu. This worked on XP. In Windows 7 however i get an access denied error. It doesn't even work with cmd opened as admin (runas).

content of move.bat: move %1 c:\specifiedfolder

thanks!

A: 

try to have the admin take ownership with takeown /F <filename> (for files) and
takeown /f <foldername> /r /d y (for folders) and then try to move the file or folder

after taking ownership set admin file permission to full control with the cacls utility :

cacls <folder> /T  /G admin:F
Alon
Althought the takeown command worked worked, i got the same error. This is the content of the batch script i tried:takeown /f %1 /r /d Ymove %1 c:\somefolder
spoekes
added an additional step to my suggestion
Alon