home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 26
/
CD_ASCQ_26_1295.iso
/
vrac
/
win32flg.zip
/
WINFLAG.TXT
< prev
next >
Wrap
Text File
|
1995-05-23
|
3KB
|
80 lines
/* READ ME */
This archive contains two programs.
ZEROFILE.EXE is a dos 32 based program that will create a ZERO length file
that can be used as a flag file. It isn't neccessary for WinFlag use.
The parameters are ZEROFILE Path\Filename.Ext or type the program name for
a refresher on how to create the file.
WINFLAG.EXE is a Win32 based program that has a ten second timer routine in
it, and every ten seconds it will check for a flag file. It tries to open
the file. If it is successful, then it knows that the flag is on. If the
window is an icon, it is brought to the top of the Z window order.
When WINFLAG.EXE boots, it will always default to a background process.
There are two methods to tell WINFLAG.EXE where to look for the flag file.
Use the properties under the Program Manager `FILE'. Under Command Line should
be the path for WINFLAG and after the .EXE add a space and then the path for
the flag file.
An INI file can be used. This is created or modified from within the program
itself....select File and then Set Flag. This will create/write to the INI
file. WinFlag will then minimize itself and wait for the flag.
This will assist if the machine does a reboot and WinFlag is in the STARTUP
folder, as it then uses the INI file value for the flag.
An incorrect path will cause the flag to never be found, since no verification
is done on the path supplied...only if there is some kind of text for a flag
filename line. This allows you to have the flag file of your choice.
As example for command line use:
C:\WINNT35\WINFLAG.EXE C:\MAIL\INBOUND\FLAGFILE.TXT
or for dialog entry:
C:\MAIL\INBOUND\FLAGFILE.TXT
****************************************************
A command line path will over ride an INI file name.
****************************************************
The filename path can be up to 63 characters in length.
The program will delete the flag file by using the menu command. If the file
is deleted, then the program will return to being a background process and
wait for the next flag to find. A message box appears if the file can't be
deleted.
The flag file can be any file. It doesn't have to be a zero length file. It
should be noted that if the flag file has any size, exercise caution with
the program menu `delete' command.
The program timer is turned off when the flag is on. If the program window is
minimized, then the timer is turned back on and the window will reappear if
the flag file still exists....see above for the Menu delete command.
Error Messages will be given if there is no command line supplied or if the
program can not hook a system timer. These will appear at program boot time.
The main program window will then not go into a background process and will
contain a text line saying what is wrong..ie: no timer or no command line.
This program can be used as an accessory item or placed in the auto STARTUP
folder. By having it in the folder for accessories, starting the program will
give you a result on a flag after a ten second period has passed. If the
program window disappears on boot, then the ini filename is used or there is
a command line value.
Enjoy!
Patrick Cohan,
PMC Systems Software.
May 23nd, 1995