Im a newbie pls suggest :- Is it possible to read txt files with the help of batch? there are 100 of txt files in a folder and in certain txt files a word for eg :-computing.net is written.... is ther any idea or batch to delete every txt files in the folder apart from the files which is containing the string computing.net...
A batch script can read and even parse text files in many ways, now according to what you want to achieve @echo off & setlocal cd Your_Folder for %%j in (*.txt) do type "%%j" | find /I "computing.net" > nul || del "%%j"
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.