Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     executing DOS scripts via focexec

Read-Only Read-Only Topic
Go
Search
Notify
Tools
executing DOS scripts via focexec
 Login/Join
 
Member
posted
Hi,

I'm trying to execute a bat file which contains a winzip command via a fex....

wzzip -x@F:\ibi\apps\bmomfapp\weekzipex.txt F:\ibi\apps\bmomfapp\ziptest.zip F:\ibi\apps\bmomfapp\*.foc

I've tried DOS and CMD in my fex and I receive the following error...

'wzzip' is not recognized as an internal or external command,
operable program or batch file.

I'm able to perform DOS/CMD DEL/COPY commands via focexec with success...so not sure why I'm receiving the above error...Any thoughts?


WF EDA&Client 713, Win2003
 
Posts: 2 | Registered: August 10, 2004Report This Post
Virtuoso
posted Hide Post
It may help if you specify the complete path to your wzzip file.
For instance:
dos c:\programs\wzzip\wzzip.exe -x .... etc


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
You have to specify the complete path.

I usually use a batch file where I put the complex sytax on "DOS" level to avoid problems with line length in the fex:

I create a batch file TEST.BAT which contains the command
D:\IBI\APPS\vmis\LGRP.EXE \\CHKAU12NTAS116 >D:\IBI\APPS\vmis\TEST.TXT
(This command has already the length of 70 and with more complex paths it would be even longer)
and I call it in a fex with the syntax
! &&APPROOT.EVAL\vmis\TEST.BAT or
DOS &&APPROOT.EVAL\vmis\TEST.BAT

I hope this helps

Felix


5.37 - 7.#
W2K3
 
Posts: 3 | Registered: October 25, 2006Report This Post
Member
posted Hide Post
I just happened to have a fex running that zips and copies a file:

REM ZIPCOPY.BAT
REM This batch file is used by the College Database report (COLL_DB.FEX). It calls the Winzip Command Line Utility
REM to zip the file and save it to the proper College Database directory in S:\SECURE\
"c:\program files\winzip\wzzip" "%2 %3" c:\temp\%1
If Not ErrorLevel 1 Goto Exit
Echo *** ERROR COPYING FILE ***
:Exit


-* CREATING THE DOS COPY COMMAND COMPONENTS USING &COLL
-* THE FILE MUST BE SAVED INTO A DIRECTORY NAMED THE VALUE OF &COLL
-SET &FILENAME= 'DATA_' | &COLL | '.XLS';
-TYPE &FILENAME
-*SET &PATH1='S:\SECURE\' | &COLL | '\COLLEGE';
-SET &PATH1='T:\SECURE\' | &COLL | '\COLLEGE';
-SET &PATH2='DATABASE\';
-TYPE &PATH1
-TYPE &PATH2
-SET &ZIPNAME= &COLL | &MDYY;
-TYPE &ZIPNAME
-SET &ZIP_PATH2= &PATH2 | &ZIPNAME;
-TYPE &ZIP_PATH2
-SET &DEL_ZIP='DEL "' | &PATH1 | ' DATABASE\*.ZIP"';
-TYPE &DEL_ZIP
&DEL_ZIP
-RUN
DOS K:\FOCUS\INCLUDE\ZIPCOPY.BAT &FILENAME &PATH1 &ZIP_PATH2
 
Posts: 2 | Location: Manhattan, Kansas | Registered: September 24, 2007Report This Post
Member
posted Hide Post
quote:
GamP


Yes, qualifying the full wizip path worked! Thanks GamP...thanks to everyone and providing sample DOS scripts


WF EDA&Client 713, Win2003
 
Posts: 2 | Registered: August 10, 2004Report This Post
Expert
posted Hide Post
Kansas has a Manhattan? cool.
welcome to the point, Lynn. What a nice debut.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Lynn,

Weren't you a regular poster on the previous (now defunct?) BB? I recognise the name.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
susannah, it's the 'little apple'


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Member
posted Hide Post
Tony/Susanna,

Greetings from the little apple. Yes, I was a regular on the old BB. I haven't done a lot of reporting for the past couple of years but still do a bit. I have always appreciated the willingness of the WebFocus community to share their experise. For me it's one of the strong points of the product.

Lynn
 
Posts: 2 | Location: Manhattan, Kansas | Registered: September 24, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     executing DOS scripts via focexec

Copyright © 1996-2020 Information Builders