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:
Code: Select all
[OPTIONS]
Download=yes
Install=no
[PROGRAMS]
Vlc=yes
Ccleaner=yes
Skype=no
7zip=yes
So i use a code in my batch like this:
Code: Select all
:Download
FOR /F "skip=6 tokens=1 delims==" %%G IN ('FIND /v /i "no" "Selection.ini"') do (
FOR /F "tokens=2 delims=," %%H IN ('FIND /i "%%G" "Links.txt"') do (
wget -q --show-progress -O %%G.exe %%H
))
to download program selected in selection.ini and using a file called Links.txt like this:
Code: Select all
Vlc,http://download.videolan.org/pub/videolan/vlc/3.0.0/win32/vlc-3.0.0-win32.exe,/S
Skype,http://go.skype.com/windows.desktop.download, /VERYSILENT
Ccleaner,http://download.ccleaner.com/ccsetup540.exe,/S
7zip,http://d.7-zip.org/a/7z1801.exe,/S
to extract link and silent parameter for silent install.
Infact to install program i use this code:
Code: Select all
:install
FOR /F "skip=6 tokens=1 delims==" %%G IN ('FIND /v /i "no" "Selection.ini"') do (
FOR /F "tokens=3 delims=," %%H IN ('FIND /i "%%G" "Links.txt"') do (
%%G.exe %%H
))
I would like to use a file Links.txt like the one below:
Code: Select all
Vlc
Link=http://download.videolan.org/pub/videolan/vlc/3.0.0/win32/vlc-3.0.0-win32.exe
Silent=/S
Skype
Link=http://go.skype.com/windows.desktop.download
Silent=/VERYSILENT
Ccleaner
Link=http://download.ccleaner.com/ccsetup540.exe
Silent=/S
7zip
Link=http://d.7-zip.org/a/7z1801.exe
Silent=/S
but i don't know how to create the code to download and install from this file
For me it's ok even to use for example:
Name=Vlc
instead of only Vlc in Links.txt if it's easier for batch coding
Can you help me with that?
Thanks