Search found 3 matches

by Mai
14 Aug 2007 01:35
Forum: DOS Batch Forum
Topic: How do I do this im terrible at Batch???
Replies: 5
Views: 12919

I tryed it but it dont do anything but say sourcefile.txt with echo off and pause added. That or I dont understand what u mean. Maybe you dont understand what i mean ? >.< copy paste the above one and look in file.txt. I want it like this: s 1 s 2 s 3 s 4 s 5 Instead of this s 1 s 2 s 3 s 4 s I was ...
by Mai
13 Aug 2007 02:01
Forum: DOS Batch Forum
Topic: How do I do this im terrible at Batch???
Replies: 5
Views: 12919

Hi soeey again but um... it didnt help much that just shows how many s's are in the file.txt. How would I type file.txt|find /c "s" and get the number of "s" so i can save it in the file.txt from the batch file I made? Example: @echo off echo/%f|findstr /b /c:"%ref_no%"...
by Mai
12 Aug 2007 20:37
Forum: DOS Batch Forum
Topic: How do I do this im terrible at Batch???
Replies: 5
Views: 12919

How do I do this im terrible at Batch???

How do I get the number of s in file.txt? Full File: echo/%f|findstr /b /c:"%ref_no%" >nul if not errorlevel 1 ( echo/%f%s >>file.txt ) else echo/%f >>file.txt ) echo :: How many times you used s in file.txt FindStr /B /C:s file.txt | Find /C "s" ping -n 2 127.0.0.1>nul echo :: ...