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:
1

1 Answer 1

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%

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .