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
November 07, 2006, 08:40 AM
RichHHi 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;
November 07, 2006, 08:45 AM
Tony ATewy,
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
November 07, 2006, 09:58 AM
Tewythanks, works like a charm!