Search Tools Links Login

Check if a file exist!


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

Code

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"
  Else
  MsgBox "It does not exist!", vbExclamation, "Doesn't Exist"
  End If

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 131 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.