Wednesday, 25 March 2015

Silently Delete a File within a Windows Batch File (BAT File)

I have recently been preparing some custom install scripts lately and I found a few things that may prove to be of some use! This script deletes a file silently and will not report the result in the console window.

Code Snippet
  1. @echo off
  2. del /s randomtextfile.txt >nul 2>&1 REM Delete file silently
End of Code Snippet

No comments: