General information
Category:
Internet applications
Title:
Virus Scan Incoming Files Under Program Control
I am interested in automating a task in an Internet application that involves virus scanning of incoming files before they are available to others for download.
Basically, I have a Web Connection form wherein users can register a file and upload it to a FTP directory. The file is simultaneously recorded in a DBF. I set a flag 'Doc_VirusScan' to .F. until someone has manually checked the file.
I'm wondering if any of the better virus scanning software allows access via OLE Automation or some other API call. Although I am using McAfee, I would consider switching products. I'm envisioning a function that reports success/failure without any user intervention, so that it is compatible with a server architecture. A hypothetical program:
SCAN FOR Doc_VirusScan = .F.
lcFile = Doc_Path + Doc_FileName
IF FILE( m.lcFile)
o = CREATEOBJECT( 'VirusScanner.Application')
IF o.Scan( m.lcFile) =
REPLACE Doc_VirusScan WITH .T.
ENDIF
ENDSCAN
A good idea<s>, but does it exist? Also, this needs to run on NT not 95.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only