Focal Point
!IBI.FIL - Specifying Folder of File

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

November 07, 2006, 06:39 AM
Tewy
!IBI.FIL - Specifying Folder of File
I have a series of HTM pages that are created by Report Caster and called into the intranet page using IBI.FIL commands. At the moment the files are dropped into the same folder as the fex and so are found no problem. I want to save the htm files in a subfolder, can I specify a path with IBI.FIL, so instead of
!IBI.FIL.myfile, it would be
!IBI.FIL.myfolder\myfile or something?

Thanks

Tewy


WF 7.6.11
Output: HTML, PDF, Excel
November 07, 2006, 08:40 AM
RichH
Hi Tewy,
You could try something like this....
-SET &PATH = 'C:\ibi\apps\';
-SET &PRINT = &PATH || FILE_NAME || '.HTM';

FILEDEF MYFILE DISK &PRINT

!IBI.FIL.MYFILE;


WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
November 07, 2006, 08:45 AM
Tony A
Tewy,

Not exactly, you would have to filedef it if the folder is not in your path.

To check the path use APP SHOWPATH.

Use APP FI MYFILE DISK yourapp/yourfile.extn. In the example (tested) the delivery app is not in the path but the contents of testpath.txt show fine. -
APP FI MYFILE DISK delivery/testpath.txt
-HTMLFORM BEGIN
<html>
<head>
<title>Title</title>
</head>
<body>
!IBI.FIL.MYFILE;
</body>
</html>
-HTMLFORM END


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 
November 07, 2006, 09:58 AM
Tewy
thanks, works like a charm!


WF 7.6.11
Output: HTML, PDF, Excel