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,184
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
7,829
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,580
Trophies
2
Age
29
Location
I forgot
Website
POCKET.LIKEITS
XP
19,245
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,196
Trophies
1
Age
40
Website
github.com
XP
2,447
Country
Netherlands
  • Like
Reactions: SaulFabre

Luca91

Well-Known Member
Newcomer
Joined
Sep 13, 2019
Messages
58
Trophies
0
Age
32
XP
811
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,196
Trophies
1
Age
40
Website
github.com
XP
2,447
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
  • BigOnYa @ BigOnYa:
    Hey Kennyboy, have you found any decent mini Pc for around $200-250? Fast enough to play most Pc games.
  • K3Nv2 @ K3Nv2:
    I'd say save another $100 anythtwith 8core upgradeable ram I'm thinking about ordering the acemagic still
    +1
  • BigOnYa @ BigOnYa:
    Damn, I haven't turn on my OG Xbox one in ages, just did now and ofcourse, 32GB update required, gonna take forever.
  • BigOnYa @ BigOnYa:
    Edit: nevermind, I forgot I up-ed my internet speed, only 30 min remaining.
  • BigOnYa @ BigOnYa:
    Will a mobo with a M2ssd slot work without a M2ssd installed, using a sata ssd temporary?
  • K3Nv2 @ K3Nv2:
    As long as sata just point bios to boot to it as main drive
    +1
  • SylverReZ @ SylverReZ:
    @K3Nv2, Is that a compilation of you?
  • K3Nv2 @ K3Nv2:
    M.2 is more of a luxury you can still boot from Ide if you really wanted to
    +1
  • K3Nv2 @ K3Nv2:
    I mean as long as the motherboard still has sata ports unless you're still in celeron days
  • Xdqwerty @ Xdqwerty:
    wut
  • BigOnYa @ BigOnYa:
    Nuh it has Sata 3
  • K3Nv2 @ K3Nv2:
    It should still have a Bootable option in bios select drive
    +1
  • Xdqwerty @ Xdqwerty:
    whats sata?
  • K3Nv2 @ K3Nv2:
    How you were born
  • BigOnYa @ BigOnYa:
    Sata is the type of interface/cable connection of hard drives/disc drives for Pc.
    +1
  • K3Nv2 @ K3Nv2:
    Don't tell them about old bank drives may explode
  • BigOnYa @ BigOnYa:
    Mini pcs in the 70's
  • K3Nv2 @ K3Nv2:
    128kbs of storage
    +1
  • K3Nv2 @ K3Nv2:
    How do I connect this to my emachine
  • K3Nv2 @ K3Nv2:
    The Tattooist of Auschwitz is pretty good so far
    K3Nv2 @ K3Nv2: The Tattooist of Auschwitz is pretty good so far