Advertisement
1_2002 Files/ File Controls/ Input/ Output #108058

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!

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
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
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine