I have 3000 files in c:\data\
, and I need to replace a static string in each of them with the name of the file. For example, in the file 12345678.txt
there will be some records along with the string 99999999
, and I want to replace 99999999
with the filename 12345678
.
How can I do this using a batch script?