Ilya
New member
Hi guys and gals,
I'm trying to accomplish something at work and need some help.
Here is the situation:
1) There is a scheduled task setup to run an 'import' for my companies software. This task runs a .bat file which runs a program with a few switches (application 1). I have edited the .bat file to output to a log file.
2) However, after the program starts and does it's thing, it closes and launches another application (application 2) and does some more work on the newly imported data (actually integrates it into the database). BUT, because application 1 closed, the task considers itself closed and closes the .bat file and marks itself complete.
My issue is:
How do I write a .bat file or reprogram my scheduled task so my output file/log file includes the entire process? My goal is to keep an eye on how long the process runs from start to finish. Because they run in the middle of the night, I'm not around to monitor. The 'history' tab in Task Scheduler only shows the start/stop time of the initial program, not the second one.
This runs on Server 2008, but 2008 is very similar to W7, so your solutions should apply to both.
Thanks for any help you can give me!
EDIT:
Solution: See post #3.
I'm trying to accomplish something at work and need some help.
Here is the situation:
1) There is a scheduled task setup to run an 'import' for my companies software. This task runs a .bat file which runs a program with a few switches (application 1). I have edited the .bat file to output to a log file.
2) However, after the program starts and does it's thing, it closes and launches another application (application 2) and does some more work on the newly imported data (actually integrates it into the database). BUT, because application 1 closed, the task considers itself closed and closes the .bat file and marks itself complete.
My issue is:
How do I write a .bat file or reprogram my scheduled task so my output file/log file includes the entire process? My goal is to keep an eye on how long the process runs from start to finish. Because they run in the middle of the night, I'm not around to monitor. The 'history' tab in Task Scheduler only shows the start/stop time of the initial program, not the second one.
This runs on Server 2008, but 2008 is very similar to W7, so your solutions should apply to both.
Thanks for any help you can give me!
EDIT:
Solution: See post #3.
Last edited:
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- Custom Build
- OS
- Windows 10 Professional x64
- CPU
- Intel Core i7 4770k
- Motherboard
- Asus Z97-Pro(Wi-Fi ac)
- Memory
- 32GB Crucial Ballistix DDR3-1600
- Graphics Card(s)
- 4GB Gigabyte NVidia GTX 980
- Sound Card
- Creative Labs Sound Blaster Audigy 5/Rx
- Monitor(s) Displays
- 40" Samsung 1080p LED LCD TV
- Screen Resolution
- 1920x1080
- Hard Drives
- 500GB - Samsung SSD 850 EVO (OS)
6TB - Western Digital SATA 6.0 WD6001FZWX-00A2VA0 (Data)
- PSU
- EVGA SuperNova 1000 P2
- Case
- Corsair 760T White ATX Full Tower Case
- Cooling
- Noctua NH-C14
- Keyboard
- Logitech K350
- Mouse
- Logitech M705
- Internet Speed
- Timewarner/Spectrum - Extreme (50/5)
- Antivirus
- Windows Defender
- Browser
- Chrome