vb6 - Getting Trojan Warning on use of FileSystemObject -


I wrote a small program that checks whether the drive is available between other things. When I installed it on another computer, Avira antivirus is raising a trojan warning, I narrow down the problem lines of code:

  20 set fso = CreateObject ("scripting .file system object ") 30 fd = fso.driveexists (" f ")  

Why would I be getting a warning for that? I am pretty sure that I have used it in the past and I have not received warnings though, I have only used it in DLLs already, and it is an EXE file.

Thanks

You get a warning that the antivirus program thinks that your script is virus It goes back to that time when capturing computer viruses was being sent to VBScript in an email (such as your Bibid.pdf.vbs) and then clicking on it was easy. That will cause the loss of VBSPf filesystemback methods and general mayhem.

Of course ... you can still use FSO:

  set the dim string A = "ting .fileSystem" set fso = CreateObject ("Scrip" + A + "EmObject")  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -