8
1
I can't use this command in win 7 when want to move a directory if the destination exists. It says Access denied. Why hapens this? It worked in XP.
move /y "%1" c:\mydir\
I can use robocopy, but then it will move only the contents of the folder. not the folder completly.
robocopy "%1" c:\mydir /E /IS /MOVE
How can I solve this problem?
When moving files then move command works well. But when source is a folder then it fails if destination alredy exists and it has to overwrite. – Aziz – 2011-09-22T11:13:35.440
Does xcopy work? If so you could use xcopy and then delete the source as a workaround? – None – 2011-09-22T12:07:15.110
2Access denied can also mean "a file in this folder or the folder itself is still opened by a running program". – Robert – 2011-09-22T13:03:28.337
xcopy works well, but robocopy is better since I don't need to delete the copyed directories at the end. But in this case I can only move the contents of source folder since I want to do use %1. this is horrible!! – Aziz – 2011-09-22T13:59:57.790
I made new post with more information http://superuser.com/questions/339067
– Aziz – 2011-09-23T12:09:38.490