Nello Sestini wrote:
> 
> My version of Norton (5.0) included a command line
> scanner that you could invoke via ShellExecute.   It was not
> installed by default, but was on the CD.    I suspect
> other windows AV products have similar command line interfaces.
> 
> It is basically the old <gasp!> DOS scanner but they continue to
> provide current pattern updates for it.
> 
> In a way it's more useful than the clunky windows interface
> for scanning incoming email attachments etc.

And if you use CreateProcess() to run it you can hide the dos window - or
use SW_SHOWMINNOACTIVE in lpStartupInfo to have it minimized at least - and
then wait on the return value.  ShellExecute() is a handy routine for
starting programs that you don't want any feedback from, but for console
apps that you need to know the return value for CreateProcess() is a better
(albeit more complicated) way to go.

-- 
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to