How to have a vb6 program do something every day

i have a reminder program that checks for reminders every time the pc is loaded, if no reminder is due it unloads itself. I want to give it to my sister, but she leaves her pc running all the time
How can i overcome this?
isnoend2001Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
just create a task in task scheduler on specific time to run that vb6 program?

do you think this make sense to you?
kulboyCommented:
to use the task scheduler check these instructions:

http://windows.microsoft.com/en-au/windows/schedule-task#1TC=windows-7
isnoend2001Author Commented:
This looks like the perfect salutation, however when opening task scheduler  i am presented with a message box "cannot connect to remote computer" New task is dimmed and cannot be clicked
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Martin LissOlder than dirtCommented:
Or you could add a timer control and this code. Note that it assumes that the program is always running.

Private Sub Form_Load()
    Timer1.Interval = 10000 ' 10 Seconds
End Sub
 
Private Sub Timer1_Timer()
Static dteTimeRun As Date

' The timer runs every 10 seconds so we can't easily check
' for a time down to the exact second so this compares the
' current day with the last day it ran and exits if it's
' the same day.
If DateDiff("d", dteTimeRun, Date) = 0 Then
    Exit Sub
End If

' Do something at 7 AM
If Format(Time(), "HH:NN AMPM") = "07:00 AM" Then
    Debug.Print "Run at 7 AM"
    ' Store today's date
    dteTimeRun = Date
End If
  
End Sub

Open in new window

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
isnoend2001Author Commented:
Thanks Marty that looks like a better solution as i cannot get task schudler to start on my pc.
it keeps popping up a message "cannot connect to remote computer" and does not start.
I have never even tried to connect to a remote computer
Martin LissOlder than dirtCommented:
I don't mind but while you said "that looks like a better solution" you didn't assign me any of the points. Perhaps I posed after you already did that.

And my comment about the app always running was wrong.
isnoend2001Author Commented:
Sorry I awarded the points before i read your post
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.