Let's say I have a batch file, which asks me for my name as input. I put my name enter. This is the manual way.
But I wanted to try something with Python. Is it possible that I make a variable in Python script and put my name in the variable and pass that variable to the bat file when it asks for input?
The very first step of my bat file is to ask me my name. Asking name batch file is for test purpose. My main batch file has this code:
@ECHO OFF
:choice
set /P c=Do you want to continue [Y/N]?
if /I "%c%" EQU "Y" goto :yes
if /I "%c%" EQU "N" goto :no
goto :choice
:yes
"scripts\enter.py" yes
goto :continue
:no
"scripts\kick_out.py" no
:continue
pause
exit
So, I hope this helps. I want to pass about 2 inputs. First Y and other when it calls enter.py it asks my login details. My username and password. So, I need to make 3 inputs. How can I do that?