Any way for safely compile a batch file (BAT) to a executable (EXE) without any virus?

SaulFabre

I like Yoshis and the Wii/Wii U scene.
OP
Member
Joined
Feb 6, 2019
Messages
3,174
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
7,771
Country
Ecuador
Hello to all GBAtemp!!! :)

Recently I saw in my thread https://gbatemp.net/threads/release...e-injector-beta-version-by-saulfabreg.573307/ that a user called @NicholasCullihal informed me a "false positive" of a "virus" on my tools that I've converted to executables (EXE) with custom icons and description from all my batch code (BAT) in Windows.

So, I'm using F2KO's BAT to EXE Converter and I've set up for compile my executable to 32 bits (but my Windows OS is 64 bits) and it works in my 64 bits PC but still have with those "virus" and "false positive" from my EXE files from my antivirus (I use Panda Dome)... So sad :(

But the trouble is that: I always wanted my tools i've coded with batch scripting they were executables with custom icons and description for give them a "professional" look :)

Well, here's my question: any other alternatives to BAT to EXE Converter for compile executables (EXE) for Windows from batch code (BAT) with custom icons and description? Or anything for make exe files from batch code files in bat with custom icon and description?

Greetings, and best regards ;)

saulfabreg (@SaulFabre)
 

Tom Bombadildo

Dick, With Balls
Member
Joined
Jul 11, 2009
Messages
14,575
Trophies
2
Age
29
Location
I forgot
Website
POCKET.LIKEITS
XP
19,223
Country
United States
This is actually an age old problem, I recall seeing people ask about this nearly a decade ago on another forum and it's not something that can be easily solved AFAIK.

The main reason this happens is that a lot of malware/viruses use bat files that have been converted to exe. Since most "legitimate" programs aren't going to be converted this way, most AV's simply incorporate a blanket "detection" for anything that's been converted from a bat to exe. The only way to get rid of this error is to contact AV's and ask for your EXEs to be added to a whitelist...which is probably more hassle than it's worth.

There are a couple workarounds, the easy way would be to simply create a shortcut file that points to the bat file so you can assign that an icon and such, or the harder way would be to create a legitimate exe that accomplishes the same thing.
 

JaapDaniels

Well-Known Member
Member
Joined
Apr 22, 2012
Messages
1,192
Trophies
1
Age
40
Website
github.com
XP
2,431
Country
Netherlands
  • Like
Reactions: SaulFabre

Luca91

Well-Known Member
Newcomer
Joined
Sep 13, 2019
Messages
56
Trophies
0
Age
32
XP
802
Country
Italy
Great, so this means i can incorporate my windows fixes in any menu i see fit?
will try out with visual studio
That helps a lot, since my menu in the batch fails me bigtime.
I haven't understood what you mean, but anyway you can easily create a "menu" using a couple of printf() and a scanf() in C. Idk what you are trying to achieve, so I can't recommend any better way.
 
  • Like
Reactions: SaulFabre

JaapDaniels

Well-Known Member
Member
Joined
Apr 22, 2012
Messages
1,192
Trophies
1
Age
40
Website
github.com
XP
2,431
Country
Netherlands
I haven't understood what you mean, but anyway you can easily create a "menu" using a couple of printf() and a scanf() in C. Idk what you are trying to achieve, so I can't recommend any better way.

https://gbatemp.net/threads/my-first-tool-written-in-batch-format.558958/
is not really working fine, the tools within work almost flawlessly, but the menu, for some reason is not.
you press any number, press one it starts a random process, you press another number same result.
i tried to find what's wrong, but couldn't find anything.
the batch is no secret, and as opensource as can be.
 
Last edited by JaapDaniels,
  • Like
Reactions: SaulFabre

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    AncientBoi @ AncientBoi: :rofl2: