Skip to content
⌘ NSIS Forum Archive

Download Files With Command Line

2 posts

Coby#

Download Files With Command Line

NSIS download files using the command line

Download with Aria2c:

nsExec::ExecToStack '"$SYSDIR\cmd.exe" /c $PLUGINSDIR\Aria2c.exe -q $LINK -d $SAVEPATH\Files.zip'
Download with URL2File:

nsExec::ExecToStack '"$SYSDIR\cmd.exe" /c $PLUGINSDIR\URL2File.exe $LINK $SAVEPATH\Files.zip'
Download with Axel:

nsExec::ExecToStack '"$SYSDIR\cmd.exe" /c $PLUGINSDIR\Axel.exe -q $LINK -o $SAVEPATH\Files.zip'
Download with Curl:

nsExec::ExecToStack '"$SYSDIR\cmd.exe" /c $PLUGINSDIR\Curl.exe --url $LINK -o $SAVEPATH\Files.zip'
Download with wget:

nsExec::ExecToStack '"$SYSDIR\cmd.exe" /c $PLUGINSDIR\wget.exe -q $LINK -o $SAVEPATH\Files.zip'
Anders#
Why are you just posting random code that nobody requested?

Why is using cmd.exe here even necessary? And you are missing quotes, $PLUGINSDIR can contain spaces! And on top of all of this, you need to Pop after ExecToStack. If you are going to post pointless code, at least don't post broken and buggy code!