- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here's an issue that's really messing with my mind. If anyone want's to tackle it, I'd be soooo grateful.
I have a set of tasks that I have set up to run on my computer after I've left for the day.
A .bat file opens an AutoCAD session and then runs a .scr.
The .scr provides custom commands for a series of extraction and publishing applications.
The extraction and publishing applications that are run are dlls compiled from vb.net code.
1) When I initiate the .bat file manually (double-click) it all runs perfectly. Really, perfectly. However,
2) When I set either the Windows task scheduler or a downloaded application called System Scheduler (pretty much the same thing) to initiate the .bat file later at night, each application called by the .scr only partially runs. For example, with the extraction applications, the code deletes the existing .txt files (previous extraction data) then extracts from a layout and rewrites the .txt file. Using the schedulers, the previous .txt files are deleted, but then the app closes and it goes to the next one. The new extractions aren't done.
The ONLY difference is how the .bat file is invoked; manually started vs. scheduled as a task. The actual code is buried behind a .scr within a dll. The .scr and .dlls are all exactly the same in each method of .bat initiation.
So why do the scheduling applications invoking the .bat file cause the dlls to only partially run, while manually invoking the .bat file makes everything run to completion the way it should? In my tiny mind, the scheduling applications simply initiate the .bat file the same way as my double-clicking it would. But my tiny mind would apparently be wrong.
Do any of you brilliant users have a suggestion or know of a different forum which may be more appropriate?
Thank you,
Erik
Solved! Go to Solution.