New
#11
No :).
But if you see More ?, it means the command is incomplete, Windows does not understand it.
I notice that I did explain this quite poorly, so here's a bit more information.
You can give several commands in one command line sentence as far as the commands are separated with an ampersand (&) and put within the parenthesis. This is useful in batch files, especially when doing FOR ... DO loops.
Following command sentence would first create a folder called D:\TARGET, then copy all PDF files starting with the letter B from folder E:\TEST to D:\TARGET and finally show message "Selected files in E:\TEST copied to D:\TARGET":
(MD D:\TARGET & COPY E:\TEST\B*.pdf D:\TARGET & ECHO Selected files in E:\TEST copied to D:\TARGET)
Notice the ampersand (&) signs between the commands, command sentence within the parenthesis.
The output in command prompt window would look like this:
Kari
Last edited by Kari; 29 Jul 2013 at 09:20. Reason: Serious typo fixed