Skip to main content

LevelBlue Named Official Cybersecurity Advisor of the PGA of America. Learn more

LevelBlue Named Official Cybersecurity Advisor of the PGA of America. Learn more

Services
Cyber Advisory
Managed Cloud Security
Data Security
Managed Detection & Response
Email Security
Managed Network Infrastructure Security
Exposure Management
Security Operations Platforms
Incident Readiness & Response
SpiderLabs Threat Intelligence
Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Operational Technology
End-to-end OT security
Microsoft
Unlock the full power of Microsoft Security
Securing the IoT Landscape
Test, monitor and secure network objects
Why LevelBlue
About Us
Awards and Accolades
LevelBlue SpiderLabs
PGA of America Partnership
Secure What's Next
LevelBlue Security Operations Platforms
Security Colony
Partners
Microsoft
Unlock the full power of Microsoft Security
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Loading...
Loading...

HOWTO: How do I schedule multiple Word and Excel reports to run simultaneously?

Expand / Collapse


This article applies to:

  • WebTrends Firewall Suite 4.X

Question:

How do I schedule multiple Word and Excel reports to run simultaneously?

Symptoms:

  • Error: Another copy of MS-Word or MS-Excel is already running. Due to problems running concurrent versions of these Microsoft applications, only one copy of the converter can run at any one time. Do you wish to wait for the previous copy to complete or abort this copy?

Causes:

Due to program limitations in the Microsoft Office tool, which is required by the WebTrends product line to create Microsoft Word and Excel documents that are compatible with Microsoft Office 97, 2000, and XP, the WebTrends products cannot create multiple Microsoft Word or Excel documents at once. If the reports overlap, the above error will result. This can pose a significant scheduling challenge if the user needs to generate a large amount of Excel or Word reports.

Procedure:

Download the file waitforfile.zip from the Article Attachments section below.

Within the downloaded zipped file the following files are contained:

  • waitforfile.exe
  • pre1.bat
  • post1.bat

Extract the file into a working directory and take a look at pre1.bat and post1.bat to see how they might be implemented.

Essentially, 'flag' files in a storage directory should be created, and place a copy of these files into a working directory. Create one flag file for each scheduled event that generates Microsoft Word or Excel reports. Then, use the waitforfile.exe program as a pre-processing command that will look for one of the flags.

If the flag is in place then waitforfile.exe will wait for that flag file to be deleted. When the file is deleted by the previous post processing batch file (see post1.bat), waitforfile.exe will release the pre-processing stage and allow the scheduled event to process the profile. When the profile has finished and created its report, post-processing is engaged and copies the file for which the scheduled event was waiting (so it does not start again until its turn) from the storage directory. It then deletes the file the next scheduled event is looking for from the working directory so that the next job can start.

Notes:

This tool should not be used on scheduled events that are using the same profile as they queue up.

Also, if possible, increase the Simultaneous Processes to the number of events (Microsoft Excel or Word events) that will be running at one time. This prevents a job from becoming stuck in the queue when another is dependent upon it finishing.

This article was previously published as:
NETIQKB1110

To contact LevelBlue about this article or to request support:


Rate this Article:
     
Tags:

Attachments



Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.