Search found 13 matches
- 18 Jan 2012 04:08
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
ok another problem now. For the example text given it works great, however im having trouble with some other text namely some javascript, where i have some unicode chars, i think it was mentioned previously it might causes issues. Basically when the script encounters a unicode char for example, vert...
- 18 Jan 2012 03:16
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
sorry im late in replying, had a mad few days at work.
The last changes you asked me to make, corrected all issues, thank you very much
i can now go ahead fixing 29k webpages rofl.
The last changes you asked me to make, corrected all issues, thank you very much

i can now go ahead fixing 29k webpages rofl.
- 12 Jan 2012 03:23
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
thanks, ill try that later and get back to you.
- 11 Jan 2012 02:10
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
ok, originally it was a php file from a website im working on, but as to not expose my code to the web, ive changed it to just a few lines of text instead, so i can show you the result. ok, so the php file is called first.php and inside it has 16 lines of data test test test test test test test test...
- 10 Jan 2012 13:57
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
i tried the amended code, however the files it produces, dont include the text specified, and it also adds line numbers and colons to the file.
- 10 Jan 2012 04:28
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
Thanks, ill try it later and report if any issues.
- 09 Jan 2012 11:33
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
ok so i just tried this on a couple of dummy files and, if i leave REM in place, no files are overwriten but a %Nf.temp and %Nf.out files are produced. %Nf.out looks like line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= line:*:= <link rel=&q...
- 07 Jan 2012 05:47
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
thats great! thank you so much.
i will test it out on a few dummy files before i run it properly.
Thanks for your help.
i will test it out on a few dummy files before i run it properly.
Thanks for your help.
- 05 Jan 2012 13:06
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
perhaps something like sed may be a better option then.
- 05 Jan 2012 05:31
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
Re: add code to multiple files by line number?
Thanks for your reply, i had subscribed to the thread but didnt get a notification so sorry if im replying late. ill check my spam folders incase its been sent there. anyway, they are php pages, <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> its not really ...
- 04 Jan 2012 03:40
- Forum: DOS Batch Forum
- Topic: add code to multiple files by line number?
- Replies: 17
- Views: 17772
add code to multiple files by line number?
hi, ive basically generated A LOT of pages and forgot to add some code to each one on the same line number.
how can i edit each file inside a folder to add specific code to the same line number on each file?
Thanks for any help in advance.
how can i edit each file inside a folder to add specific code to the same line number on each file?
Thanks for any help in advance.
- 18 Sep 2011 02:30
- Forum: DOS Batch Forum
- Topic: text replace in multiple files using a list file
- Replies: 2
- Views: 3464
Re: text replace in multiple files using a list file
Thanks for your reply.
The first example works perfectly!
Thank you
The first example works perfectly!
Thank you

- 17 Sep 2011 09:07
- Forum: DOS Batch Forum
- Topic: text replace in multiple files using a list file
- Replies: 2
- Views: 3464
text replace in multiple files using a list file
i currently have a batch file which copies a base file multiple times and renames each copy with a list of words given inside a list file. SET source_file=index.php SET name_list_file=filenames.txt FOR /F "usebackq delims=," %%G IN (`TYPE %name_list_file%`) DO ( COPY %source_file% %%G ) Ho...