Help if file not there

Discussion in 'Programming General' started by kridan500, May 15, 2008.

Help if file not there
  1. Unread #1 - May 15, 2008 at 3:29 PM
  2. kridan500
    Joined:
    Feb 11, 2007
    Posts:
    217
    Referrals:
    1
    Sythe Gold:
    0

    kridan500 Active Member
    Banned

    Help if file not there

    Hello i need help with a program.
    If the file example c:\lol.txt is not there then i whant the program to do something how do i do that?:D
     
  3. Unread #2 - May 15, 2008 at 7:18 PM
  4. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Help if file not there

    If FileExisits then
    blah
    else
    blah
    end if
    Code:
    Public Function FileExists(strPath As String) As Integer
    FileExists = Not (Dir(strPath) = "")
    End Function
    
     
  5. Unread #3 - May 16, 2008 at 11:15 AM
  6. kridan500
    Joined:
    Feb 11, 2007
    Posts:
    217
    Referrals:
    1
    Sythe Gold:
    0

    kridan500 Active Member
    Banned

    Help if file not there

    thanks
     
< auto alcher help | Visual Basic 2005 runescape cleint tut?? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site