I'm trying to write a batch file that will automatically run a python script. After python main.py
is executed, the script asks for what serial port the user is using (using the raw input function in python).
I want to automatize the process by trying all the different COM ports until we find the correct port so users do not have to enter the COM port.
Basically I am just wondering what batch command is used to write to the terminal? I'm new to batch and I couldn't find any information about my specific question...
I have tried this so far:
main.py
echo COM3
pause
But the "COM3" does not get entered in to the terminal. Would really appreciate any help thanks so much!