Set fso = New FileSystemObject If fso.GetFileName(txtPath + sname) = True Then Kill txtPath + sname MsgBox "File Deleted" End If
txtpath is the path to C:\Documents and Settings\All Users\Start Menu\Programs\Startup
where in startup i have an shortcut file
fso.getfilename doesnt find the shortcut file .
I want the method to find the shortcut file and delete it
Code for it Please