home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
sir_v1b.zip
/
sir.INF
(
.txt
)
< prev
next >
Wrap
OS/2 Help File
|
1996-03-11
|
20KB
|
431 lines
ΓòÉΓòÉΓòÉ <hidden> Filenames used by SIR! ΓòÉΓòÉΓòÉ
Sir.EXE
Folder_Image_Of_The_Day.Bmp
Backdrop_Of_The_Day.Bmp
OS2LOGO
SIR.configuration
Mon.Cmd, Tue.cmd, Wed.cmd, Thu.cmd, Fri.cmd, Sat.cmd and Sun.cmd.
ΓòÉΓòÉΓòÉ <hidden> The Author ΓòÉΓòÉΓòÉ
Me be Jan-Helge Bergesen and this program be much for just the fun of it!.
My appologies for the very, very, very NOT good installation, but I AM stupid!
Click Here For Licence
ΓòÉΓòÉΓòÉ 1. About ΓòÉΓòÉΓòÉ
(Should I Run)
By Jan-Helge Bergesen 1996
SIR! is a small program that contains sub modules that perform various tasks.
The idea is to have it run as a CALL in CONFIG.SYS, so even though it is
possible to run anytime this doc assumes that it is run as a CALL.
The program relies on a number of system variables in its function, and will
not function without them.
Current sub-modules:
Module Name Description
bmp_chgr Changes the folder background at
random
bdrop_chgr Changes the desktop backdrop at
random
lgo_chgr Changes the boot logo at boot-time
at random
xtrn_proc Runs an OS/2 command file at
boot-time
KillTemp Cleans the temporary directory (if
any)
ΓòÉΓòÉΓòÉ 2. Required Files ΓòÉΓòÉΓòÉ
The following files should be somewhere:
File Description
Sir.EXE The program itself (Either
HPFS or FAT)
SirFuncs.DLL The shared DLL (Both HPFS or
FAT, *MUST* reside in the
LIBPATH)
SIR.INF The documentation in IPFC
format (should be in the
BOOKSHELF path)
Install.Cmd Installation Rexx script
(needs rexx installed)
KtmpPM.EXE The PM stand alone version of
KillTemp module in
SirFuncs.DLL
kt.Exe The VIO stand alone version
of the PM version of the
module in SirFuncs.DLL
Revision.Log Guess┬╖.┬╖
SIR.CFG/Sir.Configuration The configuration file
created by SIR
ΓòÉΓòÉΓòÉ 3. Modules ΓòÉΓòÉΓòÉ
Please make a selection in the contents tree.
This page intentionally blank.
ΓòÉΓòÉΓòÉ 3.1. bmp_chgr: Folder background changer ΓòÉΓòÉΓòÉ
This modules switches the active folder bitmap when activated.
It uses the variable BMP_SRC_DIR and selects and image at random of the *.BMP
files it finds there.
The selected bitmap is then copied into the directory pointed to by
BMP_DEST_DIR, and is renamed to Folder_Image_Of_The_Day.BMP
It requires the following system variables:
BMP_SRC_DIR
BMP_DEST_DIR
Observe!
These variables must NOT point to the same location.
This because bmp_chgr selects a random file in BMP_SRC_DIR, which means it is
possible the destination can be selected as a source.
This will lead to errors.
ΓòÉΓòÉΓòÉ 3.2. bdrop_chgr: Desktop picture changer ΓòÉΓòÉΓòÉ
This module swicthes the active desktop backdrop when activated.
It copies the randomly selected bitmap from the directory pointed to by
BDROP_SRC_DIR into the destination directory pointed to by BDROP_DEST_DIR with
the name Backdrop_Of_The_Day.
It requires the foloowing system variables to be set:
BDROP_SRC_DIR
BDROP_DEST_DIR
Observe!
These variables must NOT point to the same location.
This because bmp_chgr selects a random file in BDROP_SRC_DIR. This means there
is a slight chance the destination also can be the source.
This will lead to errors.
However BDROP_SRC_DIR can be the same as BMP_SRC_DIR.
ΓòÉΓòÉΓòÉ 3.3. lgo_chgr: Bootpicture changer ΓòÉΓòÉΓòÉ
This module switches the picture displayed at boot time when activated.
It selects a *.LGO file at random from the directory pointed to by LOGO_SRC_DIR
It then removes any attributes on the file [boot drive]:\OS2LOGO and copies the
selected file into it.
Note: lgo_chgr assumes you've booted from the same drives as your OS2SYS.INI
is located.
That is, the drive letter is grabbed from the statement SET
SYSTEM_INI=(whatever) in CONFIG.SYS.
System variables required for module:
LOGO_SRC_DIR.
Also supplied in the archives are a selection of *.LGO files as I found them
on the Hobbes CD-ROM. I've enclosed the files as they came (I think).
ΓòÉΓòÉΓòÉ 3.4. xtrn_proc: External command file execution ΓòÉΓòÉΓòÉ
This module runs a command file asociated with the name of the day.
I.e. on a Thursday, Thu.Cmd would be run.
These files *MUST* reside in the default directory. If the module is activated
and the required file is missing, an error will be issued,
Note: These files must not be Rexx/2 scripts, if so the module will fail.
This is because Rexx isn't started at this time of boot time.
ΓòÉΓòÉΓòÉ 3.5. KillTemp: Clean up temporary directory ΓòÉΓòÉΓòÉ
This module cleans up the directory pointed to by TMP or TEMP system variables.
KillTemp prefers the name TEMP.
If this is not found TMP is sought after is this isn't available either,
KillTemp fails.
When cleaning up KillTemp remove all files and subdirectories regardless of
attributes set. If you should happen delete something of importance, files are
recoverable if DELDIR variable is set.
This tells OS/2 to keep the most recently deleted files
At present this module runs wether you want it or not, thus making the
temporary directory somehow act like a RAM disk.
(See also KillTemp PM)
The reason for both TMP and TEMP being checked for, is the fact that
applications don't seem to agree on what to use...%-)
ΓòÉΓòÉΓòÉ 4. Command line options ΓòÉΓòÉΓòÉ
The only argument accepted is "setup".
This is used for configuring and re-configuring SIR!. Changes are saved in
"SIR.configuration" in the location pointed to by SIR_CFG or the default
directory if missing.
The format of the file is as follows:
One header(22 byte) + one 4-bit bitfield for each weekday. The bifield is
written as normal char's.
The bitfield looks like this:
struct do_what{
unsigned X_BMP : 1;
unsigned X_BDROP: 1;
unsigned X_LOGO: 1;
unsigned X_XTRN: 1;
};
ΓòÉΓòÉΓòÉ 5. Setting up ΓòÉΓòÉΓòÉ
After running 'INSTALL.EXE', you should have an updated CONFIG.SYS and an extra
folder on you desktop. (Please chech)
The folder contains two objects:
Object name: What it does:
Sir! Setup Runs SIR.EXE with the parameter
setup.
ReadMe This is the WPProgram object for
this doc
Your CONFIG.SYS should contain the system variables needed, and a CALL for
SIR.EXE.
After setting the variables (i.e. re-booting), you must set up the Workplace
with the bitmap names created by SIR!.
When configuring SIR!, use the command line option 'setup' by typing:
[C:\]sir setup[enter]
This will take you through the configuration steps of each weekday.
ΓòÉΓòÉΓòÉ 5.1. System Variables ΓòÉΓòÉΓòÉ
SIR! requires some system variables to be set.
System variables can be set globally or locally.
You can do this by editing your CONFIG.SYS to set them globally, or just set
them at the command prompt to set them locally.
It is recommended to set them in CONFIG.SYS since you will not have any manual
control of the environment at boot time when SIR! is supposed to run.
Setting variables in CONFIG.SYS requires a reboot, as CONFIG.SYS only is read
at boot.
Please refer to OS/2's online information for more help on this topic.
The following are the required system variables. Whitout them SIR! will no
work:
BMP_SRC_DIR
BMP_DEST_DIR
BDROP_SRC_DIR
BDROP_DEST_DIR
LOGO_SRC_DIR
In addition SIR_CFG, may be set to point to SIR.configuration, if not found
SIR! will create and maintain this file in its default directory.
ΓòÉΓòÉΓòÉ 5.2. Setting up the window schemes ΓòÉΓòÉΓòÉ
As mentioned I haven't studied the OS/2 API, so you just have to set up a
window scheme manually.
However first you'll have to run SIR! once after the variables have been set.
This so that the files has been created.
This is how it's done (more or less, my sustem speaks Norwegian see..):
1. Open she System Folder :
2. Open the Setup Folder :
3. Open the Window Scheme object :
4. Double click on a object of your choice.
5. Drop down the list box on the right of the window.
6. Select desktop bacground.
7. Push the edit button.
8. Search for the bitmap (Backdrop.BMP / Backdrop_Of_The_Day.BMP)
9. Close the dialog.
10. Select folderbackground.
11. Push the edit button.
12. Search for the bitmap (Folder.Bmp/Folder_Image_Of_The_Day.BMP).
13. Close the dialog.
14. Hold down the 'ALT' key and drag the scheme into the Workplace
and drop it.
And that should be it. If it didn't work, remember I am NOT to blame ;-)=
ΓòÉΓòÉΓòÉ 6. KillTemp PM ΓòÉΓòÉΓòÉ
KillTemp PM is an (almost) stand alone program derived from SIR!
Imagine you've been downloading lost of stuff, unzipped it, tested it, and
determined it to be crap. Usually this calls for some filemanager to be started
and a lot of deleting...
NO MORE!!
KillTemp PM would reside on your Launch Pad and at one click, clean up the
entire temp directory. KillTemp PM, as KillTemp module of SIR!, removes
everything regardless of attribute set. However files are recoverable, if
you've set the DELDIR vaiable in CONFIG.SYS.
There's really not much more to say about it, other than this too requires
"SirFuncs.DLL"(v1.14+) to be present in your LIBPATH.
ΓòÉΓòÉΓòÉ 7. kt.Exe ΓòÉΓòÉΓòÉ
kt.Exe is the VIO version of KillTemp PM.
Other than it's a VIO program, its a complete duplicate of KillTemp PM
ΓòÉΓòÉΓòÉ 8. License ΓòÉΓòÉΓòÉ
This program is Freeware. Enjoy it.
SIR! LICENSE
SIR! not public domain software. It is FREEWARE and is provided AS IS.
I MAKE NO WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED,
INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
All users are granted an unlimited license to copy SIR
for the use of others.
No fee, charge or other compensation may be accepted or
requested by any person.
SIR! may be distributed in conjunction with any
other product to your hearts desire.
Operators of electronic bulletin board systems (Sysops) may post
SIR! for downloading by their users only as long as the
above conditions are met.
Distributors of public domain or user supported software may
distribute copies of SIR! subject to the above
conditions.
This means: IT'S ENIRELY FREE WHATSOEVER!!
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
Point to the directory containing your *.LGO files.
Variable set in CONFIG.SYS (globally) or in the relevant session (locally).
Example:
SET LGOG_SRC_DIR=C:\OS2\LOGOS
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
Points to the directory containing your bitmap selection.
Variable set in CONFIG.SYS (globally) or in the relevant session (locally).
Example:
SET BMP_SRC_DIR=C:\OS2\BITMAP
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
Points to the directory you want the active bitmap contained.
Variable set in CONFIG.SYS (globally) or in the relevant session (locally).
Example:
SET BMP_DEST_DIR=C:\INIT
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
Points to the dircetory containing your selected backdrops.
Variable set in CONFIG.SYS (globally) or in the relevant session (locally).
Example:
SET BDROP_SRC_DIR=C:\OS2\BITMAP\BACKDROP
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
Points to the directory where your want the backdrop contained.
Variable set in CONFIG.SYS (globally) or in the relevant session (locally).
Example:
SET BDROP_DEST_DIR=C:\INIT
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
This is a file used by OS/2 at startup.
If this file would is corrupted in anyway, OS/2 will not boot.
In this case you will have to boot from installation disks and copy the default
file over to the harddisk.
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
This variable points to SIR.configuration's location and should be set in
CONFIG.SYS (globally).
If not found SIR! looks in the current directory, if it isn't found there
either SIR! prompts you to answer if it should be created.
Example:
SET SIR_CFG=C:\INIT
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
Used to start a process when CONFIG.SYS is read.
Unlike START, CALL waits for the process's termination.
Usage
CALL=[DRIVE][PATH][PROGRAM][ARGS]
When using SIR!:
CALL=C:\bin\sir.exe
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
Note: These command files cannot be Rexx/2 scripts as rexx isn't started at
the time SIR! normally executes.