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.
add or replace text in .txt file
Name: Saiuns Date: March 6, 2009 at 01:04:56 Pacific OS: Windows XP Subcategory: Batch
Comment:
Hello,
I want to generate a text-file that lists all folder and subfolders as: c:\foldername1\subfolder1\ and I want to proceed eacht folder line with a string: sting c:\foldername1\subfolder1\ sting c:\foldername2\subfolder2\ etc... and save the file as myfile.abc
I already have this: dir /s /on /b /a:d > c:\myfile.abc that gives me a list with the directorys. And I can use the command on a folder by RMB --> files listing
Now I want to add the string in front of each line. But I can't figure out how to add the string, I thougth maybe by replacing the "c:\" with "string c:\"?
I'm a real noob in .bat files and really appreciate your help
Summary: I need to figure out a method to find and replace text within a text file. I have a file named, "myfile.txt" that has the following; testing=1 database=500 rules=30 I want the batch file to find datab...
Summary: I have been reading all the posts and tips here about replacing text in files. However, neither of them works for me. I have a regfile containg a lot of "123xyz". I want to replace them within a BAT w...
Summary: I am trying to create a batch file that will complete the action I need. It will always run in WinXP. I have been researching this for a couple of weeks, and I have not found the solution. *** Fir...