Computing.Net > Forums > Programming > Bat file insert a word every 10 lines

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.

Bat file insert a word every 10 lines

Reply to Message Icon

Name: Nitro212
Date: May 17, 2009 at 11:01:05 Pacific
OS: Microsoft Windows XP Professional
CPU/Ram: 2.999 GHz / 3326 MB
Product: Custom / CUSTOM
Subcategory: Batch
Comment:

Hello, i been trying to google and figure out how to add a text/word every 10 or 15 lines... for example i wan't to insert echo a pause command every 10 lines on a text file.. im witting a bat script that will call that file and i need to pause every 10 lines to prvenet for it to freeze..

line1
line2
line3
line4
line5
line6
line7
line8
line10
pause
line11
line12

ect... to insert a word every 10 lines or so.. is it possible? i found this but it insert it every line...

http://www.computing.net/answers/pr...



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: May 17, 2009 at 18:08:47 Pacific
Reply:

so why don't you try setting the "2" to "10".


0
Reply to Message Icon

Related Posts

See More


comprehensively edit an h... Help with PHP - displayin...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Bat file insert a word every 10 lines

questions on logging a bat file www.computing.net/answers/programming/questions-on-logging-a-bat-file/17927.html

Question for the bat file guys www.computing.net/answers/programming/question-for-the-bat-file-guys-/10925.html

Load a batch file as a TSR www.computing.net/answers/programming/load-a-batch-file-as-a-tsr/8704.html