Jan-21-2022, 10:22 AM
The
Often in batch files the following pattern is used, to switch the echoing of commands globally off:
The
The command
This is often used to see debug output from a broken program. If it was not run direct in a terminal, the new terminal will instantly close, and you've no time to read the Exceptions.
@
in a batch file is suppressing the echoing of the command.Often in batch files the following pattern is used, to switch the echoing of commands globally off:
@echo off
py.exe
is the program, which finds the latest Python Interpreter on well-known paths.C:\yourpath\PythonScript.py
is the program itself.The
%*
is for arguments.google Wrote:%* expands to the complete list of arguments passed to the script. You typically use it when you want to call some other program or script and pass the same arguments that were passed to your script. The %* modifier is a unique modifier that represents all arguments passed in a batch file.
The command
pause
will be executed after the python program has been finished. The command pause
waits for a key press.This is often used to see debug output from a broken program. If it was not run direct in a terminal, the new terminal will instantly close, and you've no time to read the Exceptions.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!