I have a script that tries to delete a file. It however returns the following: Microsoft VBScript runtime error: Permission denied.
My questions are
1. How can I write a script that uses DeleteFile, and ensure that the script doesnt exit if it encounters a problem trying to delete the file.
2. If (1) is not possible, how can I ensure that the shell Cscript.exe returns a non-zero error code anytime it encounters a runtime error
Thanks
Milton
My questions are
1. How can I write a script that uses DeleteFile, and ensure that the script doesnt exit if it encounters a problem trying to delete the file.
2. If (1) is not possible, how can I ensure that the shell Cscript.exe returns a non-zero error code anytime it encounters a runtime error
Thanks
Milton