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.
Batch to append text to each line of a txt
Name: jbravo Date: May 7, 2009 at 07:58:12 Pacific OS: Windows XP pro CPU/Ram: P4/512 Product: Dell / OPTIPLEX Subcategory: Batch
Comment:
I need to append a fixed text string to the beginning of each line of a text file like this. The first file is a dir list of filenames generated with dir /a:-d/b/o:n>list.txt I then want to add www.mysite.com\ before the data already on each line so I get.
www.mysite.com\1234.mp3 etc. I then need to add it to another txt but I can do that. TIA
Summary: I need to count no. of commas in each line of a csv file which contains text with spaces: e.g. below text in a file [mig@cpeuidb bin]$ cat cmt.txt_bkp this, is a ,comma ,count test1 this, is a ,comma...
Summary: I have a batch script that can remove the top 6 lines of a txt file. @echo off setLocal EnableDelayedExpansion for /f "skip=6" %%A in (c:\batch\1.txt) do ( echo %%A >> # ) del "c:\batch\1.txt" for /f...
Summary: ---Sci-Guy--- "I usually prefer just to be pointed in the right direction so I can try to figure it out myself. I'm just trying to learn VB and find it better if I have to do some work myself." I sha...