NerdZone wrote:Just to confirm: there is no variable that holds each app's TargetPath (or "Download location") value?
Yes there is, for path most of us are using {target}\{category} (or {target}\{category\class}). "target" is a global variable (sample value= "C:\"), "category" and "category\class" are regular variables.
NerdZone wrote:It would also be nice to have the ability to archive an old "Application" (ie. copy/move it to an "Archive" folder) if a new version is detected and before it is downloaded.
Lets get back on this one.
No, you don't have to edit each job and enter the full unique TargetPath for each copy command - you can use "generic commands" for archiving using built-in variables. Let's assume your file, e.g. the older file you wish to archive, as filename generated by
{appname}_{version}.{url:ext}
You can use
move {appname}*.* {target}\{category}\{appname}\
For archiving. Or replace move with copy, and you might as well use Windows Environment Variables for more complex stuff. This is very flexible. For instance, two of the command pairs I use the most are (this is XML, careful)
<ExecuteCommand>{rem} mkdir {a}{appname}\ & {7z}7z x "{file}" -o{a}{appname}\ -y</ExecuteCommand>
<ExecutePreCommand>{rem} del /s /q {a}{appname}\*.*</ExecutePreCommand>
And (I have ~70-80 jobs with these)
<ExecuteCommand>{rem} copy /y "{file}" {shared}</ExecuteCommand>
<ExecutePreCommand>{rem} del /q {shared}\{appname}*.*</ExecutePreCommand>
If this doesn't help please post the specific command you are trying to use. 
Last edited by FranciscoR (2009-07-30 20:48:46)