I developed a program I think has potential, but don't want the end user to a) have to download python and b) steal my code. How would I turn it the .py of my script into a .bat or .exe so my end user can run it?

Recommended Answers

Probably the simplest way to make it a .bat is to make an exe that will write a .bat, execute the .bat, then delete the .bat.

In short, if you plan on distributing in windows, make it an exe. py2exe is the standard from what I understand. Your other options …

Jump to Post

All 6 Replies

tried both that and pyinstaller, I would like it as a .bat

tried both that and pyinstaller, I would like it as a .bat

Why would you want it in a .bat file? Turn it into an EXE.

If you want to turn it into a .bat you have translate the code into Batch.

Ok any other programs that are easy to use?

interesting,thanks for the information :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.