Question Check if my program has been opened before

Haxaro

Well-known member
Joined
Mar 13, 2009
Messages
105
Programming Experience
1-3
I have my program (Student Pad - The Project - Haxaro Freeware) and it has gone fairly large. In my next release, i would like to know how many user approximatly are using it, so when ever a user opens my program for the first time on that computer, it sends me, or my website a report telling me that it was opened on a computer. so if 4,000 people download and open it, i should get 4,000 emails or reports.

I know how i can get the program to send me the report, but how can i make sure that it only sends it the first time that the program is loaded?

Thanks!
 
pseudocode:

VB.NET:
Sub Main

    Read value from file or registry

    If file or registry setting does not exist, it has never been opened before then
        send my data to website
        write value to file of registry so it does not send in the funture
    end if

    continue on to main application

End Sub
 

Latest posts

Back
Top