README.md

December 4, 2022 ยท View on GitHub

Check if a file exist!

Description

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

More Info

Submitted On
ByVisualBlind
LevelIntermediate
User Rating3.1 (34 globes from 11 users)
CompatibilityVB 6.0
CategoryFiles/ File Controls/ Input/ Output
WorldVisual Basic
Archive File

Source Code

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