home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR8
/
GSF29B.ZIP
/
GSCRPT.EXE
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-04-09
|
4KB
|
111 lines
@echo off
if (%1)==() goto USAGE
if (%2)==() goto USAGE
if not exist install.bat goto USAGE
if not exist %1\nul goto nopath
if not exist %2\nul goto nopath
if exist %1\GSCRIPT.DOT goto warning
if not exist gscript.dot goto nofile
if not exist gsfdoc.doc goto nofile
if not exist gsfdemo.doc goto nofile
if not exist gscript.hlp goto nofile
if not exist gscript.ini goto nofile
cls
Echo.
Echo gScript Installation
echo ─────────────────────────────────────────────────
Echo Path confirmation.
Echo.
Echo You wish to copy GSCRIPT.DOT, GSFDEMO.DOC and GSFDOC.DOC
Echo to the Dot-Path [%1]
Echo.
Echo.
Echo You wish to copy GSCRIPT.INI and GSCRIPT.HLP to the
Echo Windows directory [%2]
Echo.
Echo.
Echo Press Ctrl-C if this is incorrect. Or
Pause
ECHO Copying GSCRIPT.DOT, GSFDOC.DOC, GSFDEMO.DOC to DOT Path: %1
COPY GSCRIPT.DOT %1 >Nul
COPY GSFDEMO.DOC %1 >Nul
COPY GSFDOC.DOC %1 >Nul
ECHO Copying GSCRIPT.HLP and GSCRIPT.INI to Windows directory: %2
COPY GSCRIPT.HLP %2 >Nul
COPY GSCRIPT.INI %2 >Nul
echo ─────────────────────────────────────────────────
Echo.
echo Installation complete.
echo.
echo Enter Word for Windows and Open the file %1\GSFDEMO.DOC.
echo for a demonstration of gScript.
echo.
echo GSFDOC.DOC is the full documentation.
echo.
echo Enjoy.
goto DONE
:USAGE
cls
echo.
echo ────────────────────────────────────────────────────────
echo USAGE: install [DOT file path] [Windows path]
echo ────────────────────────────────────────────────────────
echo Installs GSCRIPT files from the *current* drive or
echo directory into the specified directories.
echo.
echo ┌┬─────────────────────────────────────────────────────────┐
echo ││ By default Word for Windows and it's templates are │
echo ││ installed into C:\WINWORD. │
echo ││ │
ECHO ││ If you are unsure of the Dot-Path, enter FileManager │
echo ││ and locate NORMAL.DOT │
echo └┴─────────────────────────────────────────────────────────┘
echo Do not append a final backslash on any of the path
echo designations
echo ─────────────────────────────────────────────────
echo EXAMPLES:
echo install c:\winword c:\windows
echo install c:\winword\dot c:\win
ECHO.
pause
Goto DONE
:NoFile
cls
echo ─────────────────────────────────────────────────
echo Error. Source file not found.
echo.
echo One or more of the files listed below were not found in the
echo current directory.
echo.
echo GSCRIPT.DOT, GSFDOC.DOC, GSFDEMO.DOC, GSCRIPT.HLP, GSCRIPT.INI
echo.
pause
goto Done
:noPath
cls
echo ─────────────────────────────────────────────────
Echo Error. Could not locate path %1
Echo.
Echo Please check that the destination paths *already* exist
Echo And have been properly typed at the command line
echo ─────────────────────────────────────────────────
echo EXAMPLES:
echo install c:\winword c:\windows
echo install c:\winword\dot c:\win
pause
goto Done
:Warning
cls
Echo.
echo ─────────────────────────────────────────────────
Echo There is already a copy of GSCRIPT.DOT in the dot-path: %1
Echo.
Echo Chances are you are updating from an earlier version.
Echo Please rename the existing GSCRIPT.DOT to another name
Echo before running INSTALL.BAT
pause
:DONE