how can i create a txt files without Windows Defender problems?

Sep 21, 2019 at 6:51pm
i'm using Windows 10...
my program create a txt file, but if the Windows Defender is activated, the file is deleted...
everytime that i create a new program i must add an exception on Windows Defender....
can i create the text file without Windows Defender interference?
Sep 21, 2019 at 6:58pm
https://support.microsoft.com/en-gb/help/4028485/windows-10-add-an-exclusion-to-windows-security
You can exclude folders as well.

Specifically, you could exclude your entire project development hierarchy.
Sep 21, 2019 at 7:26pm
"Specifically, you could exclude your entire project development hierarchy."
how?
what i know is disable the Windows Defender
Sep 21, 2019 at 8:40pm
you should exclude not only your project directory but also VS directory, SDK directory and just all the directories that get involved in development. every sane developer will recommend you that, to speed up your build, debug and compile time.

That's just one of the many steps to optimize your development environment among others such as, precompiled headers for faster intellisense, must have VS extensions etc...

In Windows defender there is an option to exclude directories or processes.
Last edited on Sep 21, 2019 at 8:43pm
Sep 21, 2019 at 8:42pm
but if i use the program on other pc with Windows Defender, i will get the same problem :(
Sep 21, 2019 at 8:45pm
Yes windows defender is well known to cause a lot of hidden problems for intellisense, debug, build and compile times.

if you mean of just running a program on another PC then not, you don't need to do anything.
Sep 21, 2019 at 8:50pm
but my program can create a txt file... and the file is deleted by Windows Defender
Sep 21, 2019 at 10:55pm
How do you know the file is deleted by windows defender?
have you tested running a program without debugger?
Sep 21, 2019 at 11:28pm
I prefer Malwarebytes. Any good anti-virus/anti-malware program is going to have an option where it registers itself with the OS, and it "replaces" Windows Defender. Windows Defender will show that it's not scanning since there's another program already doing that.
Sep 22, 2019 at 3:23am
Is defender deleting the files?

Or just quarantining them?
https://www.google.com/search?q=windows+defender+quarantine+location
Sep 22, 2019 at 10:38am
malibor and salem... yes i have sure.
i know, i have sure, that the Windows Defender is deleting the file, because:
- if Windows Defender is activated, the file isn't created(ok... it's created but then deleted);
- if Windows Defender is disabled(yes i know do it), the file is created without problems

zapshe: me too... in time i must change it ;)
Sep 22, 2019 at 1:54pm
Cambalinho you should report this to VS team with report tool in visual studio.

Did you exclude your development environment in Windows defender? that should do the trick, if not just disable real time protection service while working in VS.
Sep 22, 2019 at 4:54pm
¿and what to do when he releases his program?
can't say «user, disable windows defender to run my program, totally not a virus.»
Sep 22, 2019 at 5:24pm
can't say «user, disable windows defender to run my program, totally not a virus.»

Tell that to 90% of torrents
Sep 22, 2019 at 9:16pm
ok.. i have Malwarebytes working... that will resolve my problem... but if i share my program, the user will get the same problem :(
i use CodeBlocks with GNU\GCC compiler.... unless the compiler have an option for avoid that problem and i don't know it
Topic archived. No new replies allowed.