DISPWHEN V 1.10 ---------------- This .PPE checks day, time & security level and displays a file if applicable. Usage: !DispWhen.PPE LowSec;HighSec;StartTime;EndTime;Days;DisplayFile Where: LowSec is the lowest level to display the file to HighSec is the highest level to display the file to StartTime is the Earliest time to display the file EndTime is the latest time to display the file Days is the day flags to display the file SMTWTFS (Y or N for each) DisplayFile is the file to be displayed Example: !DispWhen.PPE 10;80;06:00;08:00;NYYYYYN;C:\PCB\GEN\NoWay The file C:\PCB\GEN\NoWay will be displayed to any caller with a security level between 10 and 80 (inclusive) between the hours 6am to 8am on a weekday (M-F). DispWhen will properly Handle time ranges where the EndTime falls before the StartTime. ie. !DispWhen.PPE 10;80;23:00;01:00;;C:\PCB\GEN\NoWay Also, Days maybe left blank (as above example) and YYYYYYY will be assumed. (Y will be assumed for any days not specified ie NN becomes NNYYYYY) The above examples assume you are placing this PPE file in the PCBOARD.DAT directory for each node. Since that is not the best way to do things, make sure you specify the full path (unless a default is added to PCBSetup in the future). ie. !C:\PCB\PPE\DispWhen.PPE 10;80;23:00;01:00;;C:\PCB\GEN\NoWay You can use this PPE in any display file and it was written to allow you to tailor it's use with the command line arguments so modification and recompiling the source code should not be needed, but it is included here for study by those who want to write their own or those who desire to add some other feature. Verion 1.10 changes the code a little to remove code that was no longer needed with the changes that have been made to the PPL and changed the order of some of the code to eliminate the need to execute some of the statements when the program was going to bail out before the data was needed anyways. Also compiled with the /nouvar for smaller size (with the changes the size went from 1077 to 623 bytes). Gary Meeker: SYSOP: SHARP Technical Support Line BBS (404) 962-1788