Jan 1, 2014 at 2:55am UTC
I'm trying to move multiple files :
move blah.cpp, blah.hpp, blah2.cpp, blah2.hpp F:\cpp\blah
And all i get is an annoying message :
The syntax of the command is incorrect.
Is there anything wrong ?
Last edited on Jan 1, 2014 at 10:42am UTC
Jan 1, 2014 at 2:57am UTC
You don't use commas to differentiate input. Have you ever used the parameters of main(int, char* []) ?
Jan 1, 2014 at 2:58am UTC
they can be comma seperated on windows. i dont think they are on windows, but on *nix systems ive seen commas, semicolons, colons, and whitespace (the classic one) as seperators
Jan 1, 2014 at 3:02am UTC
i think you misunderstood what xerzi was saying. what you want to do is put all of the .cpp files in a folder then (x)copy the folder to f:\path
Jan 1, 2014 at 5:32am UTC
You cannot name more than one file (or directory) to move unless you're using wildcards. The "/?" information is incorrect.
Jan 1, 2014 at 4:15pm UTC
I think that was a 6.0 feature that was almost immediately dropped. (The syntax was wonky to begin with anyway.)
Use wildcards or a for command:
C:\fooey> for %F in (blah.cpp blah.hpp blah2.cpp blah2.hpp) do @move %F F:\cpp\blah
If you are putting this in a batch file, be sure to double those % signs.