Page 1 of 1

Move command help!

Posted: 03 Oct 2011 10:56
by BatMaster
hey guys
two Questions for you
1.why does the move command treat spaces as "to"?
AND
2.i need to move a file to another folder but the folders name has spaces :( in it and i need admin rights to rename it. is there anyway i can still use the move command to move it :?:

Re: Move command help!

Posted: 03 Oct 2011 11:02
by aGerman
1. Because space is one of the standard delimiters in batch AND that's the syntax for MOVE
2. Enclose the entire path in quotes like

Code: Select all

move "c:\path with spaces\file.ext" "c:\path with more spaces\new file name.ext"


Regards
aGerman

Re: Move command help!

Posted: 03 Oct 2011 11:08
by BatMaster
Thanks aGerman