home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
UTILS
/
MWUSRS12.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-03-05
|
2KB
|
97 lines
REM FOR MWUSRS12
REM BY JIM DONOVAN, MAR 94
@ECHO OFF
CLS
ECHO.
ECHO WARNING-ALL OF THE FILES THAT CAME IN THE "ZIP" FILE MUST BE IN YOUR
ECHO WINDOWS DIRECTORY IN ORDER FOR THIS INSTALL BATCH FILE TO WORK RIGHT!
ECHO ALSO, THIS FILE MUST BE RUN FROM THE WINDOWS DIRECTORY.
ECHO.
ECHO HIT CTRL-BREAK TO STOP
PAUSE
PATH=%PATH%;\WINDOWS;
CD \WINDOWS
MD ORIGFLS
COPY WIN.INI ORIGFLS
COPY SYSTEM.INI ORIGFLS
DEL ONE
DEL TWO
DEL THREE
DEL FOUR
MD ONE
MD TWO
MD THREE
MD FOUR
COPY *.INI ONE
COPY *.GRP ONE
COPY *.INI TWO
COPY *.GRP TWO
CD \DOS
COPY *.GRP \WINDOWS\ONE
COPY *.GRP \WINDOWS\TWO
CD \WINDOWS
CLS
ECHO.
CHOICE /C:234 /T:2,45 How many users do you want to install for(45 secs till 2 is auto-chosen)
IF ERRORLEVEL 3 GOTO FOUR
IF ERRORLEVEL 2 GOTO THREE
COPY W.BAT \
DEL T.BAT
DEL F.BAT
RD THREE
RD FOUR
GOTO END
:THREE
DEL W.BAT
DEL F.BAT
REN T.BAT W.BAT
RD FOUR
COPY *.INI THREE
COPY *.GRP THREE
COPY W.BAT \
CD \DOS
COPY *.GRP \WINDOWS\THREE
GOTO END
:FOUR
DEL W.BAT
DEL T.BAT
REN F.BAT W.BAT
COPY *.INI FOUR
COPY *.GRP FOUR
COPY W.BAT \
CD \DOS
COPY *.GRP \WINDOWS\FOUR
:END
ECHO A > A.TXT
COPY \WINDOWS\PRI\. \WINDOWS\ONE < A.TXT
COPY \WINDOWS\SEC\. \WINDOWS\TWO < A.TXT
DEL A.TXT
ECHO Y > Y.TXT
DEL \WINDOWS\PRI\. < Y.TXT
DEL \WINDOWS\SEC\. < Y.TXT
DEL Y.TXT
RD \WINDOWS\PRI
RD \WINDOWS\SEC
DEL \WINDOWS\PRI.DAT
DEL \WINDOWS\SEC.DAT
CLS
ECHO.
ECHO THIS PROGRAM USES ABOUT 500K-1M OF YOUR HARD DISK.
ECHO IF YOU INSTALL A Windows PROGRAM AFTER THIS THAT MODIFIES YOUR WIN.INI
ECHO AND/OR SYSTEM.INI FILE, THEN YOU WILL HAVE TO REINSTALL THAT PROGRAM
ECHO WHILE IN THE OTHER USER MODES ALSO, OR JUST COPY THE YOUR FILES TO THE
ECHO OTHER USER'S SUBDIRECTORY. THE PROBLEM WITH THE LATTER METHOD IS THAT
ECHO THEY WILL LOSE ALL THEIR PERSONAL SETTINGS. PICK YOUR POISON!
ECHO.
ECHO IF YOU EVER DESIRE TO UNINSTALL THIS RUN DEMWUSRS.BAT
ECHO.
ECHO TO START WINDOWS FROM NOW ON JUST TYPE W FROM YOUR ROOT DIRECTORY AND
ECHO HIT ENTER. IF YOU EVER ENTER "WIN" BY ACCIDENT, REBOOT YOUR COMPUTER
ECHO WITHOUT EXITING Windows TO PREVENT OVERWRITING SOMEONE'S PERSONAL SETTINGS.
PAUSE
CD \WINDOWS
DIR /A:D
ECHO.
ECHO THIS PROGRAM WILL NOW ERASE ITSELF TO SAVE SPACE
DEL INSTALL.BAT