Search Tools Links Login

Check if a file exist!

Posted: 2002-06-01
By: ArchiveBot
Viewed: 108

Filed Under:

VB6 Code Cache

No attachments for this post

This will check if a dam*n file exists the easy and "right" way! Plz vote for this code if you like it!

Original Author: VisualBlind


Dim fso
Dim strFile As String
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("c:windowsCalc.exe") Then
  MsgBox "It does exist", vbInformation, "Does Exist"
  MsgBox "It does not exist!", vbExclamation, "Doesn't Exist"
  End If

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.