Re: Indicator to Run One Time



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



Relevant Pages

  • Indicator to Run One Time
    ... I want my VB6 app to do something different the first time it ... week, before many restarts. ... group that would delete the log file, then create it the first time the ...
    (microsoft.public.vb.general.discussion)
  • Determine When a User Logged In
    ... triggered by my app, ... from a remote location the first time it runs. ... week, before many restarts. ... Startup group that would delete the log file, ...
    (microsoft.public.vb.general.discussion)
  • Re: Determine When a User Logged In
    ... I want it to be triggered by my app, ... that could be a minute ago or last week, before many restarts. ... Startup group that would delete the log file, then create it the first time the program runs. ...
    (microsoft.public.vb.general.discussion)
  • Re: Determine When a User Logged In
    ... first time the program is being run. ... I want it to be triggered by my app, ... But that could be a minute ago or last week, before many restarts. ... Startup group that would delete the log file, then create it the first time the program runs. ...
    (microsoft.public.vb.general.discussion)
  • Re: Indicator to Run One Time
    ... triggered by my app, ... week, before many restarts. ... Startup group that would delete the log file, ...
    (microsoft.public.vb.general.discussion)