כדאי לך לקרוא קצת על FileSystemObject
שם ההפנייה : Microsoft scripting runtime
לאחר שיצרת את ההפניה המתאימה, הקוד הבא יבדוק אם קובץ קיים בספרייה: Dim Fso As New FileSystemObject Private Sub Form_Load() If Fso.FileExists("Filename.xxx") Then 'The file Exist Else 'The file does not exist End IfEnd Sub
|