Can anyone give me a bit of code to check for the existence of a file? Thanks ManUman
Use the multi-talented Dir() function VB Code: If Len(Dir("C:\autoexec.bat")) > 0 Then MsgBox "Exits!" Else MsgBox "Doesn't exist!" End If
If Len(Dir("C:\autoexec.bat")) > 0 Then MsgBox "Exits!" Else MsgBox "Doesn't exist!" End If
Thanks for helping me out. ManUman
Forum Rules