Answer the question
In order to leave comments, you need to log in
How to write a bat script to run an exe compiled by pyinstaller?
Good day.
Actually the question, I wrote a piece of code, assembled it with pyinstaller, without any build flags. (pyinstaller main.py)
wrote this line for run.bat
start C:\Users\valinor\Desktop\hihi\dist\main\main.exe --dir='D:\ttt'
Answer the question
In order to leave comments, you need to log in
There are commands to change the working directory, cd
like pushd
/ popd
. In addition, the command itself start
supports the key for this /d
. Might work
start /d "C:\Users\valinor\Desktop\hihi\dist\main" main.exe --dir='D:\ttt'
/?
- "The answer is easily found by a search engine.") Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question