For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > March 2004 > AV alert over CreateTextFile









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author AV alert over CreateTextFile
Syed Zeeshan Haider

2004-03-29, 3:31 pm

Hello Experts,
I have VB6EE on Win98SE.

I have recently written a little software for my personal use (yes, it
doesn't contain any of my ActiveX DLL's).
I have Norton Anti-Virus 2003 installed in my PC. My software creates text
files with different extensions. I am using CreateTextFile method of
FileSystemObject object.

Sometimes during the usage of my software, Norton AV alerts me about some
"virus like activity" in my software in my software at CreateTextFile
method. To keep it working, I chose "Allow this entire script" option. It
happens only in complied file during run-time. It has never taken place in
break mode.

What is bad in CreateTextFile method that Norton AV takes it to be a
"virus-like activity"?
Or is AV buggy?
Should I use I/O instead of FileSystemObject?

Thank you,
--
Syed Zeeshan Haider.
http://szh.20m.com/
http://gomusharrafgo.20m.com/

-----------------------------------
Allah says to Mankind:
"Then which of the favours of your Lord will ye deny?"


Ken Halter

2004-03-29, 4:30 pm

It's not specifically "CreateTextFile", it's more like the entire FSO. It's
a scripting object which means that all modern anti-virus programs will
complain about it.

> Should I use I/O instead of FileSystemObject?


Yes.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
"Syed Zeeshan Haider" <szhatforumsNoVirusesOrSpam@hotpop.com> wrote in
message news:Ofyr%23hcFEHA.1840@TK2MSFTNGP12.phx.gbl...
> Hello Experts,
> I have VB6EE on Win98SE.
>
> I have recently written a little software for my personal use (yes, it
> doesn't contain any of my ActiveX DLL's).
> I have Norton Anti-Virus 2003 installed in my PC. My software creates text
> files with different extensions. I am using CreateTextFile method of
> FileSystemObject object.
>
> Sometimes during the usage of my software, Norton AV alerts me about some
> "virus like activity" in my software in my software at CreateTextFile
> method. To keep it working, I chose "Allow this entire script" option. It
> happens only in complied file during run-time. It has never taken place in
> break mode.
>
> What is bad in CreateTextFile method that Norton AV takes it to be a
> "virus-like activity"?
> Or is AV buggy?
> Should I use I/O instead of FileSystemObject?
>
> Thank you,
> --
> Syed Zeeshan Haider.
> http://szh.20m.com/
> http://gomusharrafgo.20m.com/
>
> -----------------------------------
> Allah says to Mankind:
> "Then which of the favours of your Lord will ye deny?"
>
>



Steven Burn

2004-03-29, 4:30 pm

Why are you using FSO to create a file when all you need is;

Dim ff as long
ff = FreeFile
open app.path & "\" & "some_text_file.txt" for binary access read as #ff
close #ff

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)


Syed Zeeshan Haider <szhatforumsNoVirusesOrSpam@hotpop.com> wrote in message
news:Ofyr#hcFEHA.1840@TK2MSFTNGP12.phx.gbl...
> Hello Experts,
> I have VB6EE on Win98SE.
>
> I have recently written a little software for my personal use (yes, it
> doesn't contain any of my ActiveX DLL's).
> I have Norton Anti-Virus 2003 installed in my PC. My software creates text
> files with different extensions. I am using CreateTextFile method of
> FileSystemObject object.
>
> Sometimes during the usage of my software, Norton AV alerts me about some
> "virus like activity" in my software in my software at CreateTextFile
> method. To keep it working, I chose "Allow this entire script" option. It
> happens only in complied file during run-time. It has never taken place in
> break mode.
>
> What is bad in CreateTextFile method that Norton AV takes it to be a
> "virus-like activity"?
> Or is AV buggy?
> Should I use I/O instead of FileSystemObject?
>
> Thank you,
> --
> Syed Zeeshan Haider.
> http://szh.20m.com/
> http://gomusharrafgo.20m.com/
>
> -----------------------------------
> Allah says to Mankind:
> "Then which of the favours of your Lord will ye deny?"
>
>



J French

2004-03-30, 2:30 am

On Tue, 30 Mar 2004 00:54:59 +0500, "Syed Zeeshan Haider"
<szhatforumsNoVirusesOrSpam@hotpop.com> wrote:

>Hello Experts,
>I have VB6EE on Win98SE.
>
>I have recently written a little software for my personal use (yes, it
>doesn't contain any of my ActiveX DLL's).
>I have Norton Anti-Virus 2003 installed in my PC. My software creates text
>files with different extensions. I am using CreateTextFile method of
>FileSystemObject object.


The FSO uses MS Scripting - ScrRun.dll
- oddly enough that is just what most viruses use ...
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com