How can I write a batch file that runs cmd.exe, enters the partial command robocopy
then waits for user input to complete and execute the robocopy command? It seems like it should be the simplest thing to do but no method I've tried enters the command in such a way as to hold and wait for user input and then successfully execute the completed robocopy command
For example:
@echo off
set var="robocopy "
cmd.exe %var%
appears to work but then, for example, user-inputting /? to bring up robocopy's info instead brings up cmd.exe
's info
Another example:
@echo off
cmd /k robocopy
Runs robocopy
with no destination/source folders or switches, then closes robocopy
and waits for a new user-inputted command.
what I'm trying to do is have a batch file that when I click it a cmd window will open with the partial command robocopy
already entered ready for me to complete the command with source/destination/switches and execute it with an enter key press - I use robocopy
all day long so this would be a big time saver.