jkfeagle Codus Confusious Local time Today, 12:03 Joined Aug 22, 2002 Messages 166 Sep 14, 2007 #1 This probably has a simple answer and I've looked through the forum to no avail but...... does anyone have a snippet of code that checks for the presence of a file? Thanks in advance.
This probably has a simple answer and I've looked through the forum to no avail but...... does anyone have a snippet of code that checks for the presence of a file? Thanks in advance.
boblarson Smeghead Local time Today, 09:03 Joined Jan 12, 2001 Messages 32,059 Sep 14, 2007 #2 Look into the DIR function: If DIR("YourFilePathAndNameHere") <> "" Then ' file exists Else ' file doesn't exist End If
Look into the DIR function: If DIR("YourFilePathAndNameHere") <> "" Then ' file exists Else ' file doesn't exist End If
jkfeagle Codus Confusious Local time Today, 12:03 Joined Aug 22, 2002 Messages 166 Sep 14, 2007 #3 Thanks Bob. I knew there'd be a simple answer. My brain is fried...it's been a long week!