Answer the question
In order to leave comments, you need to log in
What is the role of parameters in batfiles?
There is such a batch file:
@echo off
u:
set /p var1="‚ўҐ¤ЁвҐ ЇҐаўл© Ї а ¬Ґва: "
set /p var2="‚ўҐ¤ЁвҐ ўв®а®© Ї а ¬Ґва: "
if not defined var1 (goto error)
if not defined var2 (goto error)
if "%var1%" == "%var2%" (goto eq) else (goto uneq)
:eq
echo %var1% > var1.txt
echo 2222 >> var1.txt
eq.bat
exit
:uneq
md var1
echo %var2% > var1\var2.txt
echo 1111 >> var1\var2.txt
uneq.bat
exit
:error
echo Ћ¤Ё Ё«Ё ®Ў Ї а ¬Ґва Ґ § ¤ л
pause
exit
Answer the question
In order to leave comments, you need to log in
You're not good at searching...
https://ss64.com/nt/syntax-args.html
https://ss64.com/nt/set.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question