0

I have a hard time making a batch file that will copy a file and let the user input the destination of where the copied file will be saved.

It should look like this:

file to be copied:
target drive:
Arjan
  • 31,511
greysky
  • 11

1 Answers1

0

Collect them as environment variables, like this:

set /p FileToCopy=File to copy?
set /p DestinationDrive=Target drive?

Then, access them as environment variables in your batch file:

%FileToCopy%
%DestinationDrive%
Jack
  • 1,343