D
D
Denis Prikhodko2014-07-23 15:19:11
cmd/bat
Denis Prikhodko, 2014-07-23 15:19:11

How to query a variable in cmd?

Hi all. Tell me, please, how can I set a variable request from a batch file?
For example, I want to make a batch file that would copy a file from one disk to another, and after starting, the question would be raised, from which disk to copy, then to which disk to copy.
What disk to copy from? [specify the letter of the section]
Then this variable is filled in and is substituted in the right place in the script.
I can not correctly formulate a query for the search, so I ask here
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-07-23
@HonesTks

Read the help on the set command, find the /p parameter ;-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question