I wanted to ask help from this community for a solution for this: I made a python gui that I can run fine when using the terminal in pycharm. Now, I want to be able to run it through a .bat file (or a similar method) so that I don't have to go through opening pycharm everytime. This is because I will hand it over to someone who might not have pycharm installed in their pc, so just double clicking the .bat file will run the gui. I also want to restrict them from seeing my codes so running it by just clicking something would be ideal.
I have tried the ff methods so far but none of them worked for me: I wrote the ff in a notepad and saved them as a .bat file
First: start "" "location where my python is\python.exe" "location where my python file is\GUI.py"
second: @echo off "location where my python is\python.exe" "location where my python file is\GUI.py" pause
Is there a way to do this? Thanks a lot!!