home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MPC Wizard 3.0
/
WIZARD3_0.ISO
/
drivers
/
graf_h_o
/
hercpowr
/
disk2
/
upwin.bat
< prev
next >
Wrap
DOS Batch File
|
1993-06-03
|
1KB
|
47 lines
@echo off
rem Version 1.3 June 03,1993
echo Windows drivers update.
echo.
if "%1"=="" goto errmes1
if "%2"=="" goto errmes1
rem Detect whether it is a valid Windows directory.
if not exist %2\win.com goto errmes2
rem Detect whether there is a SYSTEM sub-directory.
rem When Windows is on a network, the local Windows directory will
rem have no SYSTEM sub-directory.
if not exist %2\system\win.cnf goto nosystem
set windest=%2\system
goto copying
:nosystem
set windest=%2
:copying
if not exist %windest%\vddagx.386 goto errmes3
echo Copying %1\*.386 to %windest% ...
copy %1\*.386 %windest% /v
echo Copying %1\*.drv to %windest% ...
copy %1\*.drv %windest% /v
echo Update completed. Remember to run Windows' SETUP next.
goto exit
:errmes2
echo Invalid Windows directory.
echo.
:errmes1
echo Usage: upwin [source drive:] [Windows directory]
echo eg. upwin A: C:\WINDOWS
goto exit
:errmes3
echo Previous version of Windows drivers not found.
echo You must have the drivers installed previously to use UPWIN.
goto exit
:exit
echo.