PDA

View Full Version : How to zip the Web update files.



NewsArchive
03-12-2010, 01:26 AM
If you do the same thing again and again, write a template...
In the wonderfull SB world, it must be write a script.

I make updates on daily base at the time beeing.
At the end i compress the full cotent of the \WEB folder, and oploads it via
FTP
SB7 has a zip function, but where to place it, so it starts after all the
cluster files has been made?
Seems like this function too needs a 'Process after compile' tick.

BTW, from the doc's (Yes, I am reading them!)
Please put double-quotes around the file specification if you are processing
"long" file names.
Does that mean, that I should use:
"J:\easyflex\Salg\Script\SetupEasyplan2\Web\*.*" ?
Or perhaps:
"J:\easyflex\Salg\Script\SetupEasyplan2\Web\*"

Edvard Korsbęk

NewsArchive
03-12-2010, 01:27 AM
Hi Edvard,

> If you do the same thing again and again, write a template...
> In the wonderfull SB world, it must be write a script.
>
> I make updates on daily base at the time beeing.
> At the end i compress the full cotent of the \WEB folder, and oploads it
> via FTP SB7 has a zip function, but where to place it, so it starts after
> all the cluster files has been made?
> Seems like this function too needs a 'Process after compile' tick.

Both "#ftp upload" and "#zip file(s)..." directives have a "Process after
script compilation" checkbox in SB7.

Just add the following somewhere to your script:

#zip file from "c:\copytest\*.*" to "c:\copytest\testftp.zip" [Post-compile]
#ftp upload "c:\copytest\testftp.zip" to ftp.lindersoft.com [Post-compile]

The first line zips, the second line uploads it (at the end of the
compilation process).

> BTW, from the doc's (Yes, I am reading them!)
> Please put double-quotes around the file specification if you are
> processing "long" file names.
> Does that mean, that I should use:
> "J:\easyflex\Salg\Script\SetupEasyplan2\Web\*.*" ?
> Or perhaps:
> "J:\easyflex\Salg\Script\SetupEasyplan2\Web\*"

Double-quotes are not required and supported in the #zip file(s) directive
:)

Does this help?

Friedrich

NewsArchive
03-12-2010, 01:33 AM
Friedrich,

> #ftp upload "c:\copytest\testftp.zip" to ftp.lindersoft.com [Post-compile]

We're supposed to upload everything to you?!<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
03-12-2010, 01:33 AM
I looked at Zip Files instead of "#zip file(s)..."
Does that confuse?
Yes!
Does your answer help?
YES

Edvard

NewsArchive
03-12-2010, 01:34 AM
Seems like i have one problem left:
J:\easyflex\Salg\Script\SetupEasyplan2\Web\*.*
Does compress:
Easyplan.wud
Setup.exe
But does not compress:
Setup_00001
Setup_00002
etc
All the Cluster files.
I have 186!

Edvard

NewsArchive
03-12-2010, 01:34 AM
J:\easyflex\Salg\Script\SetupEasyplan2\Web\*

Solved it...

Edvard

NewsArchive
03-13-2010, 01:54 AM
Lee,

>> #ftp upload "c:\copytest\testftp.zip" to ftp.lindersoft.com
>> [Post-compile]
>
> We're supposed to upload everything to you?!<g>

YES! Including serial number and password lists, please <g>

Friedrich