- Local time
- Today, 02:28
- Joined
- Feb 19, 2013
- Messages
- 17,402
Hi,
I have asked a similar question before but now can't find the thread - I think it was a follow on from a thread started by someone else.
To summarise, I have my own scheduler to schedule tasks like reminders, running and email reports etc. Problem is if Access is not open, it doesn't run. So the suggestion was to migrate these to the windows task manager. This I have done.
However users are not particularly savvy about using the task manager and when to use it so I thought it would be a better idea to take the data from my scheduler and use VBA to 'upload' a new task in the windows task manager, either on the user machine or the server or an 'always on' spare machine.
I can do this manually using schTask in the command box with all the relevant flags, but can't seem to get it to work using vba - for example I'm using the following to list what is in the task manager at the moment
but all I get is a number, not sure if it is an error code, but I get different numbers each time I run it so probably not.
Any thoughts?
I have asked a similar question before but now can't find the thread - I think it was a follow on from a thread started by someone else.
To summarise, I have my own scheduler to schedule tasks like reminders, running and email reports etc. Problem is if Access is not open, it doesn't run. So the suggestion was to migrate these to the windows task manager. This I have done.
However users are not particularly savvy about using the task manager and when to use it so I thought it would be a better idea to take the data from my scheduler and use VBA to 'upload' a new task in the windows task manager, either on the user machine or the server or an 'always on' spare machine.
I can do this manually using schTask in the command box with all the relevant flags, but can't seem to get it to work using vba - for example I'm using the following to list what is in the task manager at the moment
Code:
dim rtn as variant
rtn=shell("schtasks /Query /FO csv")
debug.print rtn
Any thoughts?