All of the above methods do not protect your source code in any way. I recently saw a press release in the news about a new compiler that does not depend on CMD. I don't know exactly how it works, but it doesn't create temporary files at runtime. All other "compilers" work on a similar principle - extract the script to a temporary folder and run it via cmd. The press release claimed a real compilation, so I downloaded the trial version and wrote a primitive script to measure the speed:.
After compiling the code runs twice as fast and I haven't noticed any calls to cmd. In addition, I ran Process Monitor and saw no creation of temporary files while it was running. This leads me to believe that this compiler provides better protection for the source code.
For example you could write one in C I'm no C -Pro, this is actually my first program and I copied lots of it from this other Stackoverflow post.
If you store this code above to MySuperApp. Launching MySuperApp. Different versions of Windows has different effects for same batch file commands, and some commands are limited to some Windows systems eg.
OK for batch files. So if you were to compile a script on Win 98, and run on Win 8. For this reason, one would need a different compiler on each version of Windows, preferably which would spit out binary code generic that can be run on as many CPU chips as possible, with same instruction sets.
This however, would still be intepreted code, and not as fast as compiled code. In short, you can get an exe file which would contain a script that would be intepreted by the command processor, but it won't be a native executable file, meaning it won't run without a host by the Windows operating system. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How can a. Ask Question. Asked 6 years, 11 months ago. Active 4 months ago. So, go through the article and pick the one that suits you the most. Bat To Exe Converter is the one that I like the most.
It is free to use and is the most feature rich software for this task. It lets you configure various settings for output EXE file, add icon, add version details, include files in EXE package, and even lets you edit Batch script before conversion.
Although, you can convert only a single file at a time, you get a bunch of configurable options for conversion. You can set certain conversion parameters, include files in the EXE package, add version information, add icon , and more. You can add a Batch file for conversion, then set output filename and path. The configuration options are available in several tabs.
Let us check them out:. A SED instructs Windows to extract a cabinet file or executable. DLL or. EXE file and write it directly to the disk without user intervention. Now, choose the Extract files and run an installation command option on the Package Purpose screen. Enter a preferred title for the package and click on the Next button. For this example, the package title is HelloWorld. The package title appears on all prompts the user will see during the installation or execution of the EXE file.
Keep the defaults and click on Next on both the Confirmation prompt and the License agreement pages. These options will not affect the installation at all. When you set a confirmation prompt, Windows asks the user whether to continue with the EXE installation or not. While setting up a license agreement prompts the user to accept the agreement or not upon running the EXE file.
Now, click on the Add button in the Packaged files page to select the file you wish to convert and click on Next. WuInstall is a command-line tool that gives you back control when to install Windows updates. It thereby offers you That's why With the help of Group Policy, the schtasks command, and PowerShell, you can run scheduled tasks on multiple computers In my last post, I demonstrated how you can use the Windows 10 Bash for your system administration tasks In my previous article, I introduced Bash for Windows Since then, I have been playing with Bash on Sometimes, you have to restart File Explorer in Windows to ensure that changed user interface settings take effect immediately ABC-Update is a free command-line tool that allows you to install Windows updates.
It is easy to use and I found a great link, if you were interested in using IExpress to install multiple executable packages:. Typically, I dont even bother with bat anymore. I just use Autohotkey which compiles to a exe natively. I'm not sure why anyone would use bat files. VBS, hotkey, powershell etc do so much more and the syntax is almost as easy to learn. I'm biased for autohotkey because of its excellent documentations and helpful forums.
I've written some pretty stellar miniapps and installers with it that are impossible to do in the antiquated world of batch programming. These bat to exe are really just continuing a system that should be done away with. There's no trojan inside, but version 1. Wish I still had the old version 1. Thanks to drzaiusapelord I looked into Auto Hot Key, and was able to successfully accomplish what I needed. I am not sure if the Free bat to exe converter has a virus or not So, despite seeing on other sites that it doesn't have a virus, and the warnings are false positive, I just didn't want to risk it!
So thanks to all for the post and comments! Thanks a lot for the information! Free Bat To Exe Converter tool v1. Ran a scan with Avast and it appears to be clean. False Positives plus current version v1. Bat To Exe Converter v1. Will you deploy Windows 11 to end users in your organization in ?
0コメント