c# - Scan files with antivirus before uploading them to sever -


i want scan files before uploaded server using symantec antivirus. have used command call cmd as:

c:\program files\symantec\symantec endpoint protection>doscan.exe /scanfile "filename"

this runs , logs generated in

program data --> symantec-->data-->logs-->av folder.

but how can 1 find out file scanned , file failed?

version of sep (symantec endpoint protection) used ver12. have read logfile switch available in ver11.

can generate custom logs? if yes how achieve same?

apologies missing version you're busy with.

based on information provided, suggestion can make program saves file in it's own directory when upload file. once done, can kick off doscan.exe command line, create log specific file in directory (so scan 1 file)

once it's done scanning, read log, delete contents, , scan next file.

not elegant, should work in case.

you can specify log file path/name. like:

c:\program files\symantec\symantec endpoint protection>doscan.exe /cmdlinescan " + strfile + "/logfile=\\" + strfilepath + "\\logs\\" + path.getfilename(strfile) + ".log\"" 

you open log based on filename of file scanned. there can keywords "found" indicate if virus found or not.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -