Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
@echo offecho helloecho how are youecho.pause
@echo offdel "C:\path\file.bat"echo @echo off >>"C:\path\file.bat"echo echo hello >>"C:\path\file.bat"echo echo how are you >>"C:\path\file.bat"echo echo. >>"C:\path\file.bat"echo echo I'm good >>"C:\path\file.bat"echo pause >>"C:\path\file.bat"
@echo offecho helloecho how are youecho.echo I'm goodpause
wow fantastic! but what has this got to do with what OP wants?
Quote from: ghostdog74 on June 07, 2007, 08:06:08 AMwow fantastic! but what has this got to do with what OP wants?well....he wanted to replace a line of text....This is another way to 'replace' something
Is there any command that can alter/manipulate text? If I get that, then I'll start with some easy, like adding a 1 to the end of each file. Like this:Before:-applespearsADDAfter:-applespearsADDbananas
echo bananas >>food.txt
Code: [Select]echo bananas >>food.txt