Focal Point
[CLOSED] Run a bat file from a FEX ?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8647062196

April 25, 2019, 02:50 PM
RichM
[CLOSED] Run a bat file from a FEX ?
I want to run a batch file from within a FEX. What command do I use.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
April 25, 2019, 03:05 PM
BabakNYC
You could use DOS or SYSTEM command.

https://webfocusinfocenter.inf...ng/source/system.htm


WebFOCUS 8206, Unix, Windows
April 26, 2019, 06:16 AM
Tony A
I would recommend using the SYSTEM function as Babak suggests.

The advantage is that, because you get a return code from the command in the variable, the whole process will wait until the command has completed.

Using just a DOS (or other op system) command does not cause processing to wait.

A question to take to the Expert centre at Summit!! You'll get great support and some examples as well Smiler

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 
April 26, 2019, 12:26 PM
TexasStingray
On our system we do not allow the execution of operating system level commands, as it is a huge security risk. We look for alternative methods to accomplish the task, even creating a java program that could call the specific bat file.




Scott