Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ZipFile( scr ; des) Need assistance syntax attached example

Featured Replies

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

  • Author

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

 

 

 

  • Author

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

  • Author

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.... :)

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.