home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
vb2go.zip
/
VISUALGO.BAT
< prev
Wrap
DOS Batch File
|
1994-06-01
|
5KB
|
133 lines
@echo off
goto Start
┌──────────────
│ VISUALGO.BAT █
▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
Wed 06-01-1994 21:15:03
┌───────┐
│PURPOSE│
└───────┘
VISUALGO.BAT =should= allow you to MANUALLY install a Visual BASIC
for Windows program and files when that program's SETUP.EXE fails
to work properly and the install fails.
┌──────────┐
│EXPAND.EXE│
└──────────┘
Dig out your set of Windows 3.1 install disks. on Diskette #3 of
your six (6) 1.44 MB set of disks is EXPAND.EXE. COPY that file. To
make sure you have the CORRECT EXPAND.EXE (not the one that comes
with DOS!!!), on the command line type:
EXPAND/? > expand.txt
This will create a text file called EXPAND.TXT which should have
the IDENTICAL information in it as below:
───────────────────────────────────────────────────────────────────
Microsoft (R) File Expansion Utility Version 2.00
Copyright (C) Microsoft Corp 1990-1991. All rights reserved.
Expands one or more compressed files.
EXPAND [-r] Source Destination
EXPAND -r Source [Destination]
-r Automatically rename expanded files. Only valid
for files compressed with -r switch.
Source Source file specification. Source may be multiple file
specifications. Wildcards may be used.
Destination Destination file / path specification. Destination may
be a directory. If Source is multiple files and -r is
not specified, Destination must be a directory.
Wildcards may not be used.
───────────────────────────────────────────────────────────────────
┌────────────┐
│HOW IT WORKS│
└────────────┘
When a programmer makes a Visual BASIC for Windows program, he may
use a "setup kit" which compresses files with a DOS program
COMPRESS.EXE and changes that file's name to *.??_
If you don't understand DOS wildcards like *.??_, then in English,
COMPRESS.EXE compresses files and changes the last character of the
file's extension to an underbar character (_). As an example,
RUN.EXE becomes RUN.EX_
When you run the SETUP.EXE which comes with the Visual BASIC for
Windows program, it attempts to copy some essential files to your
C:\WINDOWS\SYSTEM (SETUP1.EXE, VER.DLL, etc) directory and then
copy and decompress all the rest of the files with a WINDOWS
program that does the same thing that the DOS program EXPAND.EXE
does.
But... sometimes the erstwhile programmer fail to code the setup
properly, or worse an eariler program that you installed has copied
outdated files to the C:\WINDOWS directory (rather than to the
C:\WINDOWS\SYSTEM directory) and a -later- perfectly valid
SETUP.EXE program will crash because of this. Crash without telling
you how to install the program MANUALLY.
Recently had six (6) different Visual BASIC for Windows (shareware
type) programs bomb and crash as I tried to install them with their
SETUP.EXE.
In all instances there was no information that came with the
program that told you what to do when this happened. And... because
the programmer compressed all the important files, you couldn't
figure out what to do and where to put What!
┌─────────────────┐
│A SIMPLE SOLUTION│
└─────────────────┘
VISUALGO.BAT uses the program EXPAND.EXE from Microsoft to expand
the compressed files.
┌─────────────────────────────────────┐
│READ THE NEXTS PARAGRAPH CAREFULLY!!!│
└─────────────────────────────────────┘
COPY all the files that came with the Visual BASIC program that
didn't install properly to a subdirectory in your path. Better yet
make a new directory under C:\WINDOWS, put all the files there with
VISUALGO.BAT and RUN this batch file in that subdirectory. Make
sure you put that copy of EXPAND.EXE there too.
VISUALGO.BAT will expand the compressed *.??_ files to the correct
file name and -delete- the *.??_ files too.
NOW... you can run the executable Visual BASIC file from that
directory.
If in trying to run the program you get an error message as:
"The file CMDIALG.VBX in C:\WINDOWS is the wrong
one needed to run this program"
Then replace that file with the file of the same name from your new
subdirectory and try again.
See how simple this stuff is when you know how???
John De Palma on CompuServe 76076,571
:Start
if not exist expand.exe goto FileMiss
expand -r *.??_
del *.??_
goto End
:FileMiss
cls
echo.
echo.
echo Can't find EXPAND.EXE which is needed to run
echo this batch file
echo
goto End
:End