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

限于喜欢 提交于 2020-12-03 18:07:39

问题


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????

I've allowed the file in Windows defender.


回答1:


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)



来源:https://stackoverflow.com/questions/32168332/after-converting-batch-file-to-exe-windows-defender-shows-the-file-as-trojan-why

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!