Search found 6 matches

by megaborg
11 Mar 2018 10:29
Forum: DOS Batch Forum
Topic: How to read lines in txt file in batch
Replies: 10
Views: 10966

Re: How to read lines in txt file in batch

I found a different way to solve my problem.... for /f "delims=" %%a in ('findstr /nixc:"%search%" "%list%"') do ( <"%list%" ( for /l %%j in (1 1 %%a) do set /p "=" set /p "line1=" set /p "line2=" set /p "line3=" set /p "line4=" set /p "line5=" echo !line1:~5! echo !line2:~7! echo !line3:~5! echo !l...
by megaborg
11 Mar 2018 04:32
Forum: DOS Batch Forum
Topic: How to read lines in txt file in batch
Replies: 10
Views: 10966

Re: How to read lines in txt file in batch

Hi aGerman, I use your code for my program and it works perfectly but now i would have to add another option in links.txt and do something like the file below: Vlc Link=http://download.videolan.org/pub/videolan/vlc/3.0.0/win32/vlc-3.0.0-win32.exe Silent=/S Description=Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
by megaborg
02 Mar 2018 06:30
Forum: DOS Batch Forum
Topic: How to read lines in txt file in batch
Replies: 10
Views: 10966

Re: How to read lines in txt file in batch

Thanks your code was perfect for my purpose.
Bye :P :D :D
by megaborg
27 Feb 2018 12:07
Forum: DOS Batch Forum
Topic: How to read lines in txt file in batch
Replies: 10
Views: 10966

Re: How to read lines in txt file in batch

Sorry aGerman but i couldn't answer your question because my pc had a big problem...but now it's all ok. With my program i create a file in which i have all programs selected in my menu. The file is called selection.ini and the one below it's a little version with only 4 programs: [OPTIONS] Download...
by megaborg
05 Feb 2018 06:28
Forum: DOS Batch Forum
Topic: How to read lines in txt file in batch
Replies: 10
Views: 10966

Re: How to read lines in txt file in batch

Because for every program i have not only the link but a description, command for autoinstall and other two options and I would prefer to have for every single program every single option on a different line....because all options on the same line makes a bit of confusion for me...that's the only re...
by megaborg
04 Feb 2018 10:38
Forum: DOS Batch Forum
Topic: How to read lines in txt file in batch
Replies: 10
Views: 10966

How to read lines in txt file in batch

I'd like to create a program in batch to download some freeware program but i don't know how to read all lines from txt to download every files If i use a txt like this: VLC,http.... Skype,http.... I've no problem but i'd like to use txt like this one called list.txt: VLC Link http:....... Skype Lin...