r/Batch • u/Boorchu • Nov 02 '26
Question (Unsolved) Which batch to exe software to use?
Hi all, long story short I have used bat2exe and windows defender is picking up as threat and removing it. Not sure if its the actual script or the software itself. Anyways, which batch to exe is safest and wont likely get flagged by antivirus? Thank you
2
Upvotes
9
u/Shadow_Thief Nov 02 '26
All of the converters have been used maliciously enough in the past that they all get flagged by heuristic scanners.
1
u/pc1350 Nov 03 '26
Adding to what everybody wrote: see this: https://www.dostips.com/forum/viewtopic.php?p=28277#p28277
Dave Benham's masterpiece Colossal Cave Adventure in batch.
Snippet of obfuscated batch file:
1
u/BellaTheUni112 Nov 05 '26
don't use one. they're not good. you should write your program in a compiled language like c if you want an exe file.
3
u/capoapk Nov 02 '26
What is your script used for? There can be commands that are suspicious
2
u/BrainWaveCC Nov 02 '26
I've tested a bunch of them over the years, including last year.
I've never found a good reason to rely on one since they come with security drawbacks, like been flagged as malicious code more often than not.
0
u/stevesfara Nov 02 '26
i usually used converters to protect my code. but now i have a trick to encrypt my code using HxD, you have to add FF FE at the start of the file (Remember to ADD, NOT REPLACE) and if you then try to edit in notepad, your code will be encrypted.
1
u/Intrepid_Ad_4504 Nov 02 '26
None of them
1
u/Glidepath22 Nov 03 '26
I had a GTP created well little program I guess to call it trigger defender so I stopped in to look at the actual code and there was absolutely nothing harm on it not even remote possibility at least that I saw so I just don’t defend her to ignore it
1
u/FAMICOMASTER 20d ago
There used to be a tool a long time ago called Advanced Batch to EXE that I got some use out of for obfuscating code in some of my games (makes it harder to cheat).
That was over a decade ago so I don't know if it's still available or still useful or will work for your application. Best of luck.