Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

after converting batch file to exe Windows Defender shows the file as trojan why? [closed]

i wrote a batch script to delete shortcut virus from a usb drive and to display the hidden folder and files.

@ECHO OFF
TITLE SHORTCUT VIRUS REMOVER
ECHO SHORTCUT VIRUS TEMPORARY REMOVER
ECHO THIS TOOL IS MADE BY BHARGAB(MAXYSPARK)
SET /P DRIVE=ENTER THE DRIVE LEETER 
CD /D %DRIVE%:
DEL *.LNK
ATTRIB -H -R -S /S /D /L %DRIVE%:\*.*
PAUSE

but after converting the batch(.bat) file to .exe file using Bat To Exe Converter the .exe file is detected as Trojan Virus Why???? Screenshot Of Windows defender

I've allowed the file in Windows defender.

like image 796
MaxySpark Avatar asked Aug 23 '15 15:08

MaxySpark


1 Answers

It is because you haven't converted them to the correct architecture for your machine. I have had the same issue with the same antivirus and it was fixed by converting to x64 not x32 (default)

like image 111
Rob Avatar answered Sep 26 '22 02:09

Rob