1.

Solve : can you help me about using dos move command to move directory??

Answer»

I want to use "move" command to move directory.
Example: move [data] from C drive to D. D drive hasn't [data].
I tried using "move" like this:
move c:\data\ d:\data\
But it errors "Access is denied".
I don't know why. But when I move directory from one location to another in one drive (such as C or D). It's ok. And if I move files from one drive to another, it's ok too. But only directory, It errors "Access is denied".

Can you help me please? I'm a newbie, my english is not good. Hope you understanding.

Thanks a lot! Until your code works as you want, use XCOPY or copy. ( you may LATER erase the source files ).  Move erases source code as you go.

Play with xcopy until it does what you need.

Good luck

p.s.  Log in as the system ADMINISTRATOR, the "access denied" should not be a problem.  Copy files and not DIRECTORIES. Be safe and not sorry.  well i can't see why move isn't working for me either.

but xcopy works just the same.

I have a FOLDER named hello there:
Code: [Select] Directory of C:\tests\hello there
07/13/2009  01:12 PM                10 file1.txt
07/13/2009  01:12 PM                10 file3.txt
07/13/2009  01:12 PM                10 file4.txt
then you can use xcopy and /e to copy all directories.

Code: [Select]xcopy /e /y "c:\tests\hello there" "f:\hello there"
this should be it for as far as the move command goes



Discussion

No Comment Found