Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch to search in .txt and rename
Name: ComradeZhukov Date: October 30, 2008 at 13:15:49 Pacific OS: XP CPU/Ram: AMD Athlon Product: x
Comment:
Hello guys! I need help to make a bat file that do search inside test.txt for the word "time" and renames that .txt like this: test_time.txt
Name: ComradeZhukov Date: October 31, 2008 at 00:41:34 Pacific
Reply:
Sorry, may be i explained not good, english is not my native.. i'll try again.
So, i need to search something inside .txt file, then i need that search results to be added into a file name: filename.txt ==> filename_searchresults.txt
0
Response Number 3
Name: klint Date: October 31, 2008 at 03:08:32 Pacific
Reply:
for /f "delims=" %%a in ('find "time" ^< test.txt') do ren test.txt "test_%%a.txt"
Summary: I found a batch script to search all drives and delete the autorun.inf file on this forum I want that method but change it up a bit. I would like to Search all drives for a specific file and copy the ...
Summary: Hi, I need help to write one MS-DOS batch file. I have one file 'FNin.txt' which contains following values srchstr1 srchstr2 srchstr3 ... srchstr999 I need to read each string from 'FNin.txt' and then...
Summary: I got good to know about how to search into the file(Topic : Dos script to search into .txt file) but now I want to ask u one more question about file search. Team , I want to ask u some more in this....