%xDWLD% Show Routine Code Author: Siegfried
Version: 1 - Date: 2007-02-15
Example calls:
%xDWLD% "http://www.reatogo.net/Downloads/REATOGO-240.exe" "unrar" "InnerFolderHERE" "CheckFileHERE"
%xDWLD% "http://www.reatogo.net/Downloads/REATOGO-240.exe" "unrar" "REATOGO-240" "REATOGO_START.exe"
Remarks:
Downlaods and extracts a file into the plugin
Same as:
%DWLD% "http://www.reatogo.de/Downloads/plugins/Ghost9_autoHelp.zip"
%Extract% "unzip" "Ghost9_autoHelp.zip" "Files" "Ghost9_autoHelp" "keep" ""
Always set to: keep the file, targetfolder is Files ; only inner folder removal
Param 1: URL
Param 2: Extractor only needed for EXE files
Param 3: Remove this inner folder
Param 4: Control file in target folder. Only needed if no extractor is specified.
NOTE: if the download file can not be derived from the URL, or the target should not be the folder Files
the method with seperate calls for DWLD and EXTRACT has to be used.
For more details about auto detection of the extractor see in EXTRACT.
Use the "%Exclude% - %ButKeep%" feature to cleanUp the target folder:
set Exclude=Lang\*.awl,
set ButKeep=Lang\%LANG%.awl,
%xDWLD% "http://download.lavasoft.com/addons/pllangs.exe" "wun"
This will only keep "Files\Lang\german.awl" on a german system.
The Exclude/ButKeep feature provides a simple way to remove any unwanted files from the target folder.
Specify any number of exclusions delimited by comma ",".
%ButKeep% can only be used together with %Exclude%. It is used to define one or several exceptions for a bulk-exclusion. A typical usage is in the context of language files cleanup.
The Exclude/ButKeep feature is available for the following routines:
%GetFolder%, %xDWLD% and %Extract%