![]() |
|
[Python] Is there a way to make a .exe that just opens command prompt and runs a program? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Is there a way to make a .exe that just opens command prompt and runs a program? (/showthread.php?tid=5677557) |
Is there a way to make a .exe that just opens command prompt and runs a program? - qow. - Jul 24, 2017 Basically just want to make it so people can double click my exe and it will open command prompt and start running. Just so they don't have to know how to get around command prompt basically. * - koolkid - Jul 24, 2017 google pyinstaller that should help you on your way. * - qow. - Jul 24, 2017 (Jul 24, 2017 03:19 PM)koolkid Wrote: google pyinstaller that should help you on your way. thanks * - Saduken - Jul 24, 2017 I agree, pyinstaller is the way to go! * - vercenta - Jul 24, 2017 Just use system(), ect....... * - Consulting Detective - Jul 25, 2017 You can also just use batch scripting. The file won't be an exe, but it can still be ran by just double clicking. * - TheMarkMan - Jul 25, 2017 (Jul 25, 2017 04:09 AM)Consulting Detective Wrote: You can also just use batch scripting. The file won't be an exe, but it can still be ran by just double clicking. They are two very different beasts with different strengths though * - TheWarOwl - Jul 25, 2017 (Jul 25, 2017 04:09 AM)Consulting Detective Wrote: You can also just use batch scripting. The file won't be an exe, but it can still be ran by just double clicking. You can compile a batch to a .exe actually. It's not the batch script itself, but would work the same http://www.battoexeconverter.com/ 🤫 You wouldn't have any reason to do that though. You can simply use python with the os.system() commands or subprocess commands. You could even call cmd.exe directly and use different ways of controlling it if you're wanting a weird way of doing it lol * - icmp - Jul 25, 2017 Use the os module's system method to execute shell commands or for Py3 checkout the new subprocesses docs.python.org/3/library/subprocess.html I recommend cx_freeze to compile your Python |