Advertisement
7_2009-2012 Files/ File Controls/ Input/ Output #236271

Basic FileExist

Check to see if a File exists, simple code

AI

Shrnutí 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.

Zdrojový kód
original-source
Dim Script As Object
Set Script = CreateObject("Scripting.filesystemobject")
If Script.FileExists("C:\My Documents\Prog.exe") = True Then
'True code here
Else
'False code here
End if
Původní komentáře (3)
Obnoveno z Wayback Machine