How can I CHECK if a file exists with visual basic?VB6 Code: [Select] Dir("C:\test.txt") vbscript Code: [Select]set objFSO = CreateObject("Scripting.FileSystemobjecT") objFSO.FileExists(FILEPATH) ... THANKS for the reply, it helped. I ended up doing this: