mmercaldi
asked on
script to add a line to a file
I am looking for a script either batch or vb that can add a line of text to a file, but if that certain line of text is there then the script ends.
This is for windows xp and 7 computers
This is for windows xp and 7 computers
From a BAT perspective it sounds like you could use FIND or FINDSTR to search the file for something unique to the line to be added, and then if it's not found "add" the new line. But we'd need a bit more detail on what the file is, what the new line looks like, where it is to be added to the file, etc.
~bp
~bp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the point...
Sorry for jumping in with speculative answer bill / patrick !
Sorry for jumping in with speculative answer bill / patrick !
What in particular do you need to do? An example would be helpful :)
Patrick