Delete a file using the SHELL function
Posted by Pierre on December 20, 2001 3:30 AM
Hello,
I would like to know what is the fastest way to delete permanently a zip file. I guess it is by using the shell function, is it correct?
If yes, can anyone help me on the followind SHELL line command:
sub DELETEFILE()
Dim sZipit as string
Const sDestination = "C:\FileName.zip"
sZipIt = Shell("del " & sDestination, vbMinimizedNoFocus)
end sub