Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i fix: 'access denied' with the move command in windows 7?

Hi there i'm using the windows 7 'move' command like so:

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

and i keep getting an 'accessed denied' error yet i have full permissions and the folder i'm trying to move isn't open or being uses?

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

any ideas?

thanks

like image 306
steve Avatar asked May 11 '13 22:05

steve


People also ask

How do I fix command prompt access denied windows 7?

Start a Command Prompt as Administrator by right-clicking on the "Command Prompt" icon in the Windows Start Menu and choose "Run as administrator". Click Continue if you are presented with a confirmation popup message box. In the new command prompt, enter "net user administrator /active:yes".

How do I stop access denied CMD?

Go to the Start menu by clicking on the icon at the bottom-left corner of your screen. Type in “cmd” at the Search bar. Once the cmd option pops up, right-click on it then select Run as administrator. On the Command Prompt, type in “net user administrator /active: yes” then press Enter on your keyboard.


2 Answers

Or you could try robocopy with /MOVE argument:

robocopy C:\old\folder F:\new\folder /E /MOVE
like image 88
Razvan Avatar answered Oct 16 '22 08:10

Razvan


Syntax is:

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

That means, you can rename one folder, but you cannot "move" contents to another drive.

I'm afraid, you have to copy your source-folder to the destination-folder (xcopy) and then delete the source-folder

like image 26
Stephan Avatar answered Oct 16 '22 07:10

Stephan