How can I fix: "access denied" with move command in Windows 7?

Hi, I am using the windows 7 "move" command as follows:

move /Y "C:\old.sub.folder\folder.i.want.to.move" "F:\new.sub.folder\folder.i.want.to.move" 

and I keep getting the "accessed denied" error message, but do I have full permissions and the folder I'm trying to move is not open or not in use?

random example trying to move one empty folder to another: http://puu.sh/2Rx6b.png

any ideas?

thanks

+8
batch-file move
source share
2 answers

Syntax:

 MOVE [/Y| /-Y] [Drive:][Path]Folder1 Folder2 

This means that you can rename one folder, but you cannot “move” the contents to another drive.

I'm afraid you need to copy the source folder to the destination folder (xcopy) and then delete the source folder

+4
source share

Or you can try robocopy with the /MOVE argument:

 robocopy C:\old\folder F:\new\folder /E /MOVE 
+3
source share

All Articles