This is a fairly simple one, using the FileSystemObject
Set objFSO = CreateObject("Scripting.FileSystemObject")
filePath = "C:\Temp\file.txt"
objFSO.DeleteFile(filePath)
Note that this is only going to work if the file exists
February 16, 2009 by leereid
This is a fairly simple one, using the FileSystemObject
Set objFSO = CreateObject("Scripting.FileSystemObject")
filePath = "C:\Temp\file.txt"
objFSO.DeleteFile(filePath)
Note that this is only going to work if the file exists