We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Sub DeleteFile() Dim fso, sTemp Dim file As String sTemp = Environ("TEMP") file = sTemp & "\" & student_scores.Log Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True Else MsgBox file & " does not exist or has already been deleted!" _ , vbExclamation, "File not Found" End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.