File Checker - Help!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tamer1009
    Forum Member
    • Nov 2008
    • 26

    File Checker - Help!

    Hello, i need a code to check of a file exist yes or no, like this:

    if C:\Program Files\Test\testfile.dll exist then change text label1 to "ok"

    if not then change test label1 to "error"


    can some1 help me with this
  • ShadowUK
    No longer a forum member
    • Oct 2007
    • 1322

    #2
    Code:
    if (File.DoesExist("C:\\Program Files\\Test\\testfile.dll")) then
         Label.SetText("Label1", "OK");
    else
         Label.SetText("Label1", "Error");
    end
    Use the manual..

    Comment

    Working...
    X