home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
d
/
dvins.zip
/
DVINS.DOC
< prev
next >
Wrap
Text File
|
1993-03-18
|
2KB
|
54 lines
March 18,1993
DVINS is a very simple program which tells you whether DesqView is
loaded or not, and (if it is) what version you have. This isn't very
interesting in most circumstances, except that DVINS also returns the
version number in its exit code. Therefore, you can use DVINS in batch
files to avoid starting programs which would crash DesqView, and you can
guarantee that DesqView programs are being run under an appropriate
version.
In my experience, disk compressors, games and tape backup utilities can
pose the greatest problems when Desqview is loaded. For example, to
prevent Compress from starting under DesqView, try a batch file like:
@echo off
dvins
if errorlevel 1 goto dvloaded
c:\pctools\compress
goto end
:dvloaded
echo Can't start PcTools Compress when DesqView is active.
echo Quit DesqView and try again!
:end
Since the DOS exit code (what you test for in an IF ERRORLEVEL
statement) is an integer that can be no higher than 255, DVINS can only
return either the major or minor version number in a single call. I
have elected to return just the major version number. If you have
DesqView version 2.42, for example, the major version number is 2 and
the minor version number is 42. DVINS will return the errorlevel of 2.
DVINS is released into the public domain so you can do what you want
with it.
Statement of Limited Liability.
David Johnson will not be liable for special, incidental, consequental,
or any other damages resulting from use of this program.
If you find any bugs, have any comments, suggestions, or improvements to
offer, please contact the author:
Either via Snail-mail:
David Johnson
507-151 Queen Street North
Hamilton, Ontario, Canada
L8R 2V7
I can also be reached via Fidonet (1:244/117), NorthAmerica Net or ILnk
in the C programming conferences. Enjoy.