Re: Indicator to Run One Time
- From: "Jan Hyde (VB MVP)" <StellaDrinker@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 Jul 2008 15:45:08 +0100
"Rick Raisley" <heavymetal-A-T-bellsouth-D-O-Tnet>'s wild
thoughts were released on Thu, 24 Jul 2008 10:16:36 -0400
bearing the following fruit:
Basically, I want my VB6 app to do something different the first time it
runs, after the PC is restarted, than any other times. I want it to be
triggered by my app (not just have an app in the Startup group), so if it is
never run, it isn't needed. But I want my app to update a data file from a
remote location the first time it runs. If run again, before the computer is
restarted, I don't want it to update the data file.
So, how do I determine that it has run once? I can make a log file, of
course, to determine it has run. But that could be a minute ago or last
week, before many restarts. I guess I could put a batch file in the Startup
group that would delete the log file, then create it the first time the
program runs. That would work, but seems kludgy.
Any better ideas?
Put an entry in the registry.
--
Jan Hyde
https://mvp.support.microsoft.com/profile/Jan.Hyde
.
- References:
- Indicator to Run One Time
- From: Rick Raisley
- Indicator to Run One Time
- Prev by Date: Re: Indicator to Run One Time
- Next by Date: Help on F1
- Previous by thread: Re: Indicator to Run One Time
- Next by thread: Re: Indicator to Run One Time
- Index(es):
Relevant Pages
|