I currently need a batch script (Windows) that allows me to attempt to delete a file, and if it fails, perform another action:
e.g.: del C:\test.bin
if fail attempt kill C:\test.bin
else echo Success
kill C:\test.bin
if success attempt del C:\test.bin
else echo Unable to kill process