Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check If Executed For First Time. (Simple)
#1
Code:
Public Shared Function IsFirstRun() As [String]
        Dim oWrite As System.IO.StreamWriter
        If Not File.Exists(Application.StartupPath & "\\firstrun.txt") Then
            oWrite = File.CreateText(Application.StartupPath & "\\firstrun.txt")
            IsFirstRun = "First Time Ran"
        Else
            IsFirstRun = "Already Ran."
        End If
    End Function

@ Eve NO.
Reply


Messages In This Thread
Check If Executed For First Time. (Simple) - by wchar_t - 08-13-2010, 07:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [C#] Check If Executed From USB Drive wchar_t 9 3,112 05-31-2011, 12:00 PM
Last Post: Filefinder

Forum Jump:


Users browsing this thread: 1 Guest(s)