Don't think much explaination is needed here.
I have a database which opens other databases via command line and uses the /x modifier to run a macro upon opening (which ends with the Quit command).
This database loops through a recordset on a timer and every 10 mins it checks the modified date of a file (my data sources) and if it has been modified in the last 12 hours it opens the database & runs the macro, then exits the loop.
This means if the file has not been modified it will continue through the loop until it finds one which has been, thus it will launch a database roughly every 10 mins.
What I want to do is limit the number it has open at once to ensure I don't get issues with my poor desktops memory / CPU. Given that the databases are launched via command line rather than being opeend as an access object, can I count the number of "msaccess.exe" processes which are currently running?
Cheers.
I have a database which opens other databases via command line and uses the /x modifier to run a macro upon opening (which ends with the Quit command).
This database loops through a recordset on a timer and every 10 mins it checks the modified date of a file (my data sources) and if it has been modified in the last 12 hours it opens the database & runs the macro, then exits the loop.
This means if the file has not been modified it will continue through the loop until it finds one which has been, thus it will launch a database roughly every 10 mins.
What I want to do is limit the number it has open at once to ensure I don't get issues with my poor desktops memory / CPU. Given that the databases are launched via command line rather than being opeend as an access object, can I count the number of "msaccess.exe" processes which are currently running?
Cheers.