sophos has a command-line interface: SAV32CLI.EXE
The sophos website says:
SAV32CLI, the command line scanner for Windows NT, Windows 2000, Windows XP and Windows 2003, is installed automatically as part of Sophos Anti-Virus for Windows NT/2000/XP/2003.
For further information, at the command prompt, type
SAV32CLI -H<br/>
The SAV32CLI help information will be displayed.
Try this return codes (unix-version)
4 Error codes
Sophos Anti-Virus returns error codes if there is an error or if a virus is
found.
0 If no errors are encountered and no viruses are found.
1 If the user interrupts the execution by pressing ‘Ctrl’+‘c’.
2 If some error preventing further execution is discovered.
3 If viruses or virus fragments are discovered.
4.1 Extended error codes
A different set of error codes are returned if the sweep command is run with
the -eec qualifier.
0 If no errors are encountered and no viruses are found.
8 If survivable errors have occurred.
16 If password-protected files have been found. (They are not scanned.)
20 If viruses have been found and disinfected.
24 If viruses have been found and not disinfected.
28 If viruses have been found in memory.
32 If there has been an integrity check failure.
36 If unsurvivable errors have occurred.
40 If execution has been interrupted.
Greetings
Hans-Georg