Command line parameters?

Author Message
Jose Santa Cruz 10/04/2005 11:59 am
Are there any command line parameters? I was trying to configure FlashGot to use Download Express but there`s no documentation on that matters.

Hope you can give me an answer.
Regards,

JS
Alexander 10/05/2005 06:50 am
Download Express & Mass Downloader command line / WM_COPYDATA parameters description

For the command line task please use the following format:
massdown.exe "command=param1=value;param2=value;..."

For the WM_COPYDATA message please use CRLF instead of `;` and do not use the "command=" prefix.

Please note that the "Mode" parameter is necessary for Mass Downloader only, not for Download Express.

Parameters description:

Url - Project URL.
Comment - Project comment.
Referer - Project link referrer (Referer is a misspelling of "referrer" which somehow made it into the HTTP standard.)
Threads - threads number for this Project (MD only.)
Priority - Project download Priority (when the Download Priority system is used) - MD only.
Path - Download folder and filename for the downloaded file
FileName - file name, if the Path parameter doesn`t contain it
Mode - How to add (MD only):
`default` - using default parameters;
`add` - add to the Project list;
`start` - start this Project if it is possible;
`addtoqueue` - add this project to Download Queue (when the Download Queue feature is used).
Category - Project Category (MD only.)
ExitWhenDone - True for exit after download completes, False otherwise. (MD only.)
DoNotRename - use the filename from the Path parameter, do not rename automatically. (MD only.)
DeleteWhenDone - remove the Project from the Projects list when done (MD only.)
NoDescription - do not create file with description (MD only.)
UserName - user name to login
Password - password to login
CustomHeaders - custom HTTP request headers

Samples:

(command line)
dep.exe "command=Url=http://www.metaproducts.com/download/desetup.exe;Comment=Download Express 1.0 Release; Referer=http://www.metaproducts.com/de.html; Threads=7;Priority=4;Path=c:\testfile.exe;Mode=Start;Category=0;ExitWhenDone=true;DoNotRename=true;DeleteWhenDone=true;NoDescription=true"

(WM_COPYDATA text)
Url=http://www.metaproducts.com/download/desetup.exe
Comment=Download Express 1.0 Release
Referer=http://www.metaproducts.com/de.html
Threads=7
Priority=4
Path=c:\testfile.exe
Mode=Start
Category=0
ExitWhenDone=true
DoNotRename=true
DeleteWhenDone=true
NoDescription=true

Best regards,
Alexander Bednyakov
MP Staff
Jose Santa Cruz 10/11/2005 04:00 pm
Solved:
1.- You have to make a .bat file in the DEP folder, I called it downloadExpress.bat
-- Copy from here (remember to delete this line) --
@echo off
setlocal
set URL = $1
set REFERER = $2

start dep.exe "command=Url=%1; Referer=%2; Mode=Add"
-- End Copy from here (remember to delete this line) --

2.- FlashGot Options -> General -> Add -> "Download Express"
3.- Select the batch file to place it on the Executable path field. Browse all files for that.
4.- Arguments template, use the placeholders for [URL] and [REFERER]. It shoul look like this:
[URL] [REFERER]

Go and play. It works great for me.
Regards,
JS