kridan500 Active Member Joined Feb 11, 2007 Sythe Gold 0 Messages 217 May 15, 2008 #1 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?
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?
H halojunkie Active Member Joined Dec 17, 2005 Sythe Gold 0 Messages 232 Location Look Above You! May 15, 2008 #2 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
If FileExisits then blah else blah end if Code: Public Function FileExists(strPath As String) As Integer FileExists = Not (Dir(strPath) = "") End Function
kridan500 Active Member Joined Feb 11, 2007 Sythe Gold 0 Messages 217 May 16, 2008 #3 Help if file not there thanks