|Did you correctly type the batch command?|
At prompt you need to type the batch name followed by the directory name otherwise you get the reported error message, e.g.
as reported on the first line of the script. Anyway use the following version that fixes a minor bug in the original one
:: MYBAT.BAT Usage: mybat Your Folder
@echo off & setlocal
if not defined mydir set mydir=%CD%
for /R "%mydir%" %%i in (.) do (
for %%j in ("%%i\*.txt") do type "%%j" | find /I "computing.net" >nul || del "%%j"
When located in the root of the structure you want to scan, you may omit to enter the directory