As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I am not sure what WebFocus uses to Zip, but I have the WinZip command line addon installed on our servers to Zip (it supports Password Protection and Encryption).
To delete files from zip files with this tool you'd use the -d option.
From the Help File:
quote:
Unless -d (delete files) is specified, WZZIP assumes "*.*" (i.e., all files) if you don't specify either @listfile or files. The -d action requires you to specify files explicitly.
- Do you have WinZip and the Command-Line Add-on installed on your server?
- Do you have a copy of wzzip installed (copied) to C:\Windows\System32\ (or do you have the path included before the exe name)?
FWIW, I have mine as a batch file that does the zip/encrypt/copy step. I can't recall the details, but I needed to do it this way to get around some limitation (output dir in a UNC maybe, not sure).
Here's Mine (verrrrry trimmed):
-SET &TOPATH = '\\GATEWAY\PUBLIC\';
-SET &FROMPATH = 'C:\IBI\APPS\HELDFILES\';
-SET &NAMEBASE = THEDATA | '_' | &BEGDATE | '.' | &ENDDATE;
-SET &FILENAME = &NAMEBASE | '.TXT';
-SET &ZIPNAME = &NAMEBASE | '.ZIP';
-SET &OUTFILE = &FROMPATH | &ZIPNAME;
-SET &INFILE = &FROMPATH | &FILENAME;
-SET &FINFILE = &TOPATH | &ZIPNAME;
.
.
.
TABLE FILE BT_MATCH_STEP_2
PRINT
OUT_LINE
ON TABLE HOLD AS DATAFINAL FORMAT ALPHA
END
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-* STEP ZIP/ENCRYPT/PASSWORD
-*
-* Z I P / E N C R Y P T F I L E
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
DOS "\\server\c$\Documents and Settings\someid\My Documents\scripts\ZIPCOPYENCRYPT.BAT" &OUTFILE &INFILE
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-* STEP COPY OUT
-*
-* C O P Y F I L E T O P U B L I C F T P S H A R E
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
DOS COPY &OUTFILE &FINFILE
Here's the batch file that does the zip:
"c:\program files\winzip\wzzip" -sSuPeRSeCrEtPaSsWoRd -ycAES256 %1 %2 "C:\Documents and Settings\someid\My Documents\Support_Files\project\*"
If Not ErrorLevel 1 Goto Exit
Echo *** ERROR COPYING FILE ***
:Exit
Still, you do have to have WZZIP.exe available. If you don't have that executable, or if you do but try to start it without specifying the path to the exe you'll get the unrecognized command.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Thanks ABT and GamP for the insight. For the time being this has been taken care by Java in my application. But I would like to work on this as soon as I get a bit free
Thanks and Regards,
WF 7611 XFOCUS/FOCUS DB Win XP EXL2K/HTML
Posts: 37 | Location: India | Registered: September 25, 2008