Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4090776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:16:54+00:00 2026-05-20T19:16:54+00:00

I am developing an application which uses file upload. My client uses Symantec End

  • 0

I am developing an application which uses file upload. My client uses Symantec End Point Protection on Windows Server.

So, I am using a sample code to check whether a file being uploaded on server.

I am calling SEP using command line.

Sample Code:

              String[] commands =  new String[6];
              commands[0] = "cmd";
              commands[1] = "/c";

              commands[2] = "C:\\Program Files\\Symantec\\Symantec Endpoint Protection\\DoScan.exe";
              commands[3] = "/cmdlinescan";
              commands[4] = "/ScanFile";
              commands[5] = fileName;

             Process process = Runtime.getRuntime().exec(commands);

             int exitVal = process.waitFor();

I have also came across that, SEP generates a daily log for each scanned file at .

scanResult = "C:\\Documents and Settings\\All Users\\Application Data\\"Symantec\\Symantec Endpoint Protection\\Logs\\";   

So, Here I want to scan the file.

I have placed check that start reading file at location. Once It returns 0 from the process

But "int exitVal = process.waitFor();" gets returned before SEP writes log to the file.

So, Is SEP "DoScan.exe" calls thread interanlly to start scanning the file.

if Yes, Please suggest me an alternative.

Any help would be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:16:54+00:00Added an answer on May 20, 2026 at 7:16 pm

    I have created a solution which works for me.

    Here, What happened that int exitVal = process.waitFor(); gets returned before Symantec AV writes result in .log file.

    So, I wrote a loop which keeps on checking based on last modified date of the log file.

    Once, the log file gets modified, I read results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing grails application which uses file searching.For that I wrote the following
I am developing a small business application which uses Sqlserver 2005 database. Platform: .Net
I am developing a application in grails which uses lot of ajax.In one part
I am very very new to xml. I am developing an application which uses
I am developing an application which uses .js files stored in the Resources/javascript folder
I am developing an application which uses Bluetooth to connect to a device and
I'm currently developing an ASP.NET application which uses a MasterPage and I want to
I am developing a web application in grails which uses lot of ajax.I need
I'm in the process of developing an application that uses client side code (js
Me and my team are developing an application, which involves a back-end written in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.