execute program

I will to develop a simple program that is activated all the time with the system date n time appear....n each month, the 1st day this program will try to execute another program.
I used timer control that can detect the system time with second by second....how to make sure the system date also changed as the time...pass 24 hr.

I have no idea about detecting when to execute the program.
is it using loop all the time to match the cretain date n time to execute the program...hope someone can help me...

thks 1st


mictanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MikeP090797Commented:
Put a timer control, and add a global variable. set the timer to 60000. In _Timer even put:

gCounter=gCounter+1
If gCounter>=60*24 then
gCounter=0
'Shell here
end if
0
mictanAuthor Commented:
Sorry, i think i had found the answer butthe thing i encounter, i wish to activate a .mdb file but error message will appear as sth call procedure....y like that?
0
vgruCommented:
mictan;
There is no point in taking up memory space by having the program running all the time.

Simply install the WinATT application on your machine and assign the time, month, frequency etc that you want your program, to run.

This will launch your application.

To stop the application.  Put an if then statement on the timer control timer event to chech for a specific time.

Hope this helps!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.