What is the equivalent cmd script for the C scanf () function?

I am developing a cmd script to automate a function, however this depends on a single user interaction. The user will have to transfer one drive letter (C, D, E, F ..) to the script, and all this, the script will complete all the tasks. However, I cannot find a solution on the Internet ... If you do not understand what I mean, I need the CMD equivalent of C scanf or a function.

+4
source share
1 answer

You can

set /p dl=Enter a drive: echo user entered %dl% 

or it will be n $1 if you pass it as an argument.

+2
source

Source: https://habr.com/ru/post/1398272/


All Articles