NewsArchive
08-08-2008, 01:45 AM
My install uses the #zip and #ftp directives (post compile) to zip my
EXE and upload it to my FTP site. I've got the "Post Compile" switch
turned on for both of these. (Thanks for the pointer the other day.)
BTW, the script viewer shows "[Post-compile]" on the #zip line, but
not on the #ftp line.
I wanted to make my upload filename "unique", so I would like to use
the #getfileinfo directive to get the date and time of the install
EXE. However, that directive doesn't have a "Post Compile" switch. I
could use the date+time of the program's EXE, but that might not
change if I've recompiled only a DLL. Could you add this option?
When I tried this, I got an upload error. The Host File is:
"download/transwin/SetupTW3_[DATESTAMP]_[TIMESTAMP].zip".
[DATESTAMP] and [TIMESTAMP] are the compiler variables set by the two
#getfileinfo directives. a #msgbox shows the filename as
"download/transwin/SetupTW3_2008/08/06_15:22:18.zip". Note the
special characters within the date and time. Is there a string
handler directive equivalent to the "Handle String Function", so that
I can deformat these numbers.
BTW, I also considered using the "Get Atomic Clock" function, as it
supposedly returns yyyymmdd. Unfortunately, it's not a compiler
directive, and it doesn't include the time (according to the Help).
Also, after uploading the file, I need to send a message announcing
the new version. I'll need to connect to the FTP site manually, to
find out the actual name of the ZIP file. Could you add a compiler
directive that lets me set the windows clipboard (with a "Post
Compile" switch)? Then I can just paste it into the message.
Or is there a better way to do all this right now?
Mike Hanson
www.boxsoft.net
EXE and upload it to my FTP site. I've got the "Post Compile" switch
turned on for both of these. (Thanks for the pointer the other day.)
BTW, the script viewer shows "[Post-compile]" on the #zip line, but
not on the #ftp line.
I wanted to make my upload filename "unique", so I would like to use
the #getfileinfo directive to get the date and time of the install
EXE. However, that directive doesn't have a "Post Compile" switch. I
could use the date+time of the program's EXE, but that might not
change if I've recompiled only a DLL. Could you add this option?
When I tried this, I got an upload error. The Host File is:
"download/transwin/SetupTW3_[DATESTAMP]_[TIMESTAMP].zip".
[DATESTAMP] and [TIMESTAMP] are the compiler variables set by the two
#getfileinfo directives. a #msgbox shows the filename as
"download/transwin/SetupTW3_2008/08/06_15:22:18.zip". Note the
special characters within the date and time. Is there a string
handler directive equivalent to the "Handle String Function", so that
I can deformat these numbers.
BTW, I also considered using the "Get Atomic Clock" function, as it
supposedly returns yyyymmdd. Unfortunately, it's not a compiler
directive, and it doesn't include the time (according to the Help).
Also, after uploading the file, I need to send a message announcing
the new version. I'll need to connect to the FTP site manually, to
find out the actual name of the ZIP file. Could you add a compiler
directive that lets me set the windows clipboard (with a "Post
Compile" switch)? Then I can just paste it into the message.
Or is there a better way to do all this right now?
Mike Hanson
www.boxsoft.net