Jump to content
Server Maintenance This Week. ×

ZipFile( scr ; des) Need assistance syntax attached example


RodM

This topic is 3748 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Attached code image

 

1)   I can COPY AS  creating the backup fmp12 file..

2)

3)  And I am able to Insert the fmp12 to my container field..

 

Next i am trying to figure the ZipFile cmd..    to issue in between step 2 above

 

 

I have read and read the little doc info I could find as shown below.. and can't find a example

 

Can anyone see were my program is.. ERROR meaning can't find my date-coded fmp12 file I want to zip?

 

I need assist with syntax scr and des parameters

 

Thanks

Rod

 

 

 

DOC

Zip File    Zips up a source file to a destination zipfile, returning the zipped file as a container.

'src' is the path to a single file (not a directory), or the name of a container field (if referencing a container field, it must include the TO name followed by ::, e.g. "Demo::result_container")

'destination' is where the zip file should be written to. If 'destination' is a directory, the zip file is given the same name as 'src', but with a '.zip' extension added. If destination is empty, a temporary zip file is created as the destination.

post-85391-0-78210400-1390977515_thumb.j

Link to comment
Share on other sites

Things are improving some, hope this makes sense..
now ERRORS WINDOW SAYS..  Can't open that file.  File is a directory?

FTPeek_UpLoadFileContainer( cmd

 

 

Attached 2 images...  disregard previous Images

 

Now that I use a full path..  zipfile(  Source     C:myfoldermyprogbackupmybackupFM.fmp12

Made it work...I tied indirect  backup without success?

 

my FTPeek is now failing where,  It worked b4, same sample scriptmaster code, sending a icon.jpg?

 

 Failing this line of  code   that did test b4 to work
set field [ config::ftp_resultText ; FTPeek_UpLoadFileContainer (    "/www/ZipCopies"   ; config::ftp_UpLoad Container     ) ]

 

So is  FTPeek command failing   or the preparation on my Zip file in the container??

 

another funny ,,

/www folder,  I guessed as.. on my website folder to be the root

 

another funny thing..   Is there a file naming problem

now stored in my container...as    mybackupFM.fmp12.zip

where as ZipFile  destination is blank,,   it doesn't but creates a SMtemp_5637383.file.zip

 

 

 

Link to comment
Share on other sites

Things are improving some, hope this makes sense..
now ERRORS WINDOW SAYS..  Can't open that file.  File is a directory?

FTPeek_UpLoadFileContainer( cmd

 

 

Attached 2 images...  disregard previous Images

 

Now that I use a full path..  zipfile(  Source     C:myfoldermyprogbackupmybackupFM.fmp12

Made it work...I tied indirect  backup without success?

 

my FTPeek is now failing where,  It worked b4, same sample scriptmaster code, sending a icon.jpg?

 

 Failing this line of  code   that did test b4 to work
set field [ config::ftp_resultText ; FTPeek_UpLoadFileContainer (    "/www/ZipCopies"   ; config::ftp_UpLoad Container     ) ]

 

So is  FTPeek command failing   or the preparation on my Zip file in the container??

 

another funny ,,

/www folder,  I guessed as.. on my website folder to be the root

 

another funny thing..   Is there a file naming problem

now stored in my container...as    mybackupFM.fmp12.zip

where as ZipFile  destination is blank,,   it doesn't but creates a SMtemp_5637383.file.zip

 

 

 

post-85391-0-05468900-1391054298_thumb.j

post-85391-0-62396000-1391054307_thumb.j

Link to comment
Share on other sites

I FIX it all... maybe someone else these images will help  several days.. for me

 

Part 1

I COPY AS   my program and data file to a folder

next to upload as container and zipFile these files  in the one command line

Then previewing  2 containers in a layout..  I can verify 2 zip files,  having the famous zip icon leading filename

 

Part 2

run the FTPeek   ftp process  

what was.. i was using  www/zip     and it worked for testing SM_example code.. 

 

Fix like worked...

set field [ config::ftp_resultText ; FTPeek_UpLoadFileContainer (    "/public_html/ZipCopies"   ; config::ftp_UpLoad Container   )]

 

 

 

AND... I am  finally working

 

Grind.... :)

Link to comment
Share on other sites

This topic is 3748 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.