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.
Replace top line Batch
Name: macuiare Date: December 13, 2008 at 10:50:15 Pacific OS: Windows XP pro CPU/Ram: AMD anthlon 64x2 2gb Product: Asus / M2N-MX SE PLUS
Comment:
Hey, Thanks for viewing this post,
I'm wanting to replace the top line of myfle.bat, only the top line and nothing else, but it has to remove the whole top line and replace it =)
Name: BatchFreak Date: December 13, 2008 at 22:24:08 Pacific
Reply:
Hey M2, you File only removes the top line. It doesn't do anything else. so shouldn't it go....
@echo off & setLocal EnableDelayedExpansion ECHO new top line>newfile.txt for /f "tokens=* delims= " %%a in (o.txt) do ( set /a N+=1 if !N! gtr 1 ( echo %%a >> newfile.txt ) )
I only Batch if possible, 2000 more lines of code, oh well.
Summary: bat find replace blank lines Need To Replace BLank Lines With : ; Level 1 every next blank line new number Asked Earlier but massage diddnt stick.... Greetz , DjinX Huizelogica ®...
Summary: I have an issue finding and replacing text using batch files as the text has quotes. I wish to replace the text to start :- (SETVAR "NOMUTT" 1) and the text to finish :- (SETVAR "NOMUTT" 0) and the...
Summary: I am trying to replace the path names in several fortran files with an updated path for easy transfer between Windows and Linux. Ideally the paths should be user spoecified currently the files read: i...