home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / vb2go.zip / VISUALGO.BAT < prev   
DOS Batch File  |  1994-06-01  |  5KB  |  133 lines

  1. @echo off
  2. goto Start
  3.                               ┌──────────────
  4.                               │ VISUALGO.BAT █
  5.                                ▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  6.  
  7.                           Wed  06-01-1994  21:15:03
  8.  
  9.      ┌───────┐
  10.      │PURPOSE│
  11.      └───────┘
  12.      VISUALGO.BAT =should= allow you to MANUALLY install a Visual BASIC
  13.      for Windows program and files when that program's SETUP.EXE fails
  14.      to work properly and the install fails.     
  15.  
  16.      ┌──────────┐
  17.      │EXPAND.EXE│
  18.      └──────────┘
  19.      Dig out your set of Windows 3.1 install disks. on Diskette #3 of
  20.      your six (6) 1.44 MB set of disks is EXPAND.EXE. COPY that file. To
  21.      make sure you have the CORRECT EXPAND.EXE (not the one that comes
  22.      with DOS!!!), on the command line type:
  23.  
  24.      EXPAND/? > expand.txt
  25.  
  26.      This will create a text file called EXPAND.TXT which should have
  27.      the IDENTICAL information in it as below:
  28.  
  29.      ───────────────────────────────────────────────────────────────────
  30.      Microsoft (R) File Expansion Utility  Version 2.00
  31.      Copyright (C) Microsoft Corp 1990-1991.  All rights reserved.
  32.  
  33.      Expands one or more compressed files.
  34.  
  35.      EXPAND [-r] Source Destination
  36.      EXPAND -r Source [Destination]
  37.  
  38.        -r          Automatically rename expanded files. Only valid
  39.                    for files compressed with -r switch.
  40.  
  41.        Source      Source file specification. Source may be multiple file
  42.                    specifications. Wildcards may be used.
  43.  
  44.        Destination Destination file / path specification. Destination may
  45.                    be a directory. If Source is multiple files and -r is
  46.                    not specified, Destination must be a directory.
  47.                    Wildcards may not be used.
  48.      ───────────────────────────────────────────────────────────────────
  49.  
  50.      ┌────────────┐
  51.      │HOW IT WORKS│
  52.      └────────────┘
  53.      When a programmer makes a Visual BASIC for Windows program, he may
  54.      use a  "setup kit" which compresses files with a DOS program
  55.      COMPRESS.EXE and changes that file's name to *.??_
  56.  
  57.      If you don't understand DOS wildcards like *.??_, then in English,
  58.      COMPRESS.EXE compresses files and changes the last character of the
  59.      file's extension to an underbar character (_). As an example,
  60.      RUN.EXE becomes RUN.EX_
  61.  
  62.      When you run the SETUP.EXE which comes with the Visual BASIC for
  63.      Windows program, it attempts to copy some essential files to your
  64.      C:\WINDOWS\SYSTEM (SETUP1.EXE, VER.DLL, etc) directory and then
  65.      copy and decompress all the rest of the files with a WINDOWS
  66.      program that does the same thing that the DOS program EXPAND.EXE
  67.      does.
  68.  
  69.      But... sometimes the erstwhile programmer fail to code the setup
  70.      properly, or worse an eariler program that you installed has copied
  71.      outdated files to the C:\WINDOWS directory (rather than to the
  72.      C:\WINDOWS\SYSTEM directory) and a -later- perfectly valid
  73.      SETUP.EXE program will crash because of this. Crash without telling
  74.      you how to install the program MANUALLY.
  75.  
  76.      Recently had six (6) different Visual BASIC for Windows (shareware
  77.      type) programs bomb and crash as I tried to install them with their
  78.      SETUP.EXE.
  79.  
  80.      In all instances there was no information that came with the
  81.      program that told you what to do when this happened. And... because
  82.      the programmer compressed all the important files, you couldn't
  83.      figure out what to do and where to put What!
  84.  
  85.      ┌─────────────────┐
  86.      │A SIMPLE SOLUTION│
  87.      └─────────────────┘
  88.      VISUALGO.BAT uses the program EXPAND.EXE from Microsoft to expand
  89.      the compressed files.
  90.  
  91.      ┌─────────────────────────────────────┐
  92.      │READ THE NEXTS PARAGRAPH CAREFULLY!!!│
  93.      └─────────────────────────────────────┘
  94.      COPY all the files that came with the Visual BASIC program that
  95.      didn't install properly to a subdirectory in your path. Better yet
  96.      make a new directory under C:\WINDOWS, put all the files there with
  97.      VISUALGO.BAT and RUN this batch file in that subdirectory. Make
  98.      sure you put that copy of EXPAND.EXE there too.
  99.  
  100.      VISUALGO.BAT will expand the compressed *.??_ files to the correct
  101.      file name and -delete- the *.??_ files too.
  102.  
  103.      NOW... you can run the executable Visual BASIC file from that
  104.      directory.
  105.  
  106.      If in trying to run the program you get an error message as:
  107.  
  108.           "The file CMDIALG.VBX in C:\WINDOWS is the wrong
  109.            one needed to run this program"
  110.  
  111.      Then replace that file with the file of the same name from your new
  112.      subdirectory and try again.
  113.  
  114.      See how simple this stuff is when you know how???
  115.  
  116.      John De Palma on CompuServe 76076,571
  117.  
  118. :Start
  119.  
  120. if not exist expand.exe goto FileMiss
  121. expand -r *.??_
  122. del *.??_
  123. goto End
  124. :FileMiss
  125. cls
  126. echo.
  127. echo.
  128. echo                Can't find EXPAND.EXE which is needed to run
  129. echo                this batch file
  130. echo 
  131. goto End
  132. :End
  133.