I am trying to implement file scanner usinf doscan.exe in C#. below is my sample code
string symantecFilePath = "C:\\Program Files (x86)\\Symantec\\Symantec Endpoint Protection\\12.1.7061.6600.105\\Bin\\Doscan.exe";
string targetPath = "C:\Temp\UploadDocs\test.docx";
using (Process process = new Process())
{
process.StartInfo = new ProcessStartInfo(symantecFilePath, "/ScanFile " + targetPath);
process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
process.StartInfo.WorkingDirectory = Path.GetDirectoryName(symantecFilePath);
var result = process.Start();
process.WaitForExit();
}
Code executes with no errors. But I dont see anything in error logs.
Does anybody knows what is happening here.