@echo off
REM Installer script for Microsft Windows 95 Binary Set for NCADMIN
REM Copyright (c) Microsoft Corporation, 1995	 All rights reserved.

if %1"==" goto usage
if %2"==" goto usage
cls
echo.
echo   ***********************************************************************
echo   ***********************************************************************
echo   *                                                                     *
echo   *	Microsoft (Windows 95 / NCADMIN ) Copy utility		     *
echo   *                                                                     *
echo   * Copyright (c) Microsoft Corporation, 1995   All rights reserved.    *
echo   *                                                                     *
echo   ***********************************************************************
echo   ***********************************************************************
echo.
echo	  This will install the Windows 95 files located [ %1 ]  onto a
echo	  server that contains the WinNT 3.51 Clients Directory Tree and
echo	  WinNT 3.51 NCADMIN.exe  [ %2\Win95 ]
echo.
echo	  If this is not correct, type Ctrl-C now and specify a different
echo	  drive letter (for example, INSTALL H: C:). If this is correct,
echo	  press any key to continue with Installation. . .
echo.
pause>NUL

if exist %2\Win95 goto checkdir
goto makedir

:checkdir
echo.
echo	  %2\Win95 already exists! Press Ctrl-C now to exit SETUP, or
echo      press any key to continue. . .
echo.
pause>NUL
goto copyfiles

:makedir

md %2\Win95 2>&1
md %2\Win95\netsetup 2>&1

:copyfiles
echo Copying files...
echo.
xcopy /s /i %1\*.* %2\Win95\Netsetup
if errorlevel 1 goto copyerror

goto success

:copyerror
echo.
echo An error has occured while installing the Windows 95
echo files. Please correct the error and run install again.
echo.
echo.
echo.
echo Current Parameters:
echo	From: %1\*.*	      To: %2\win95
echo.
goto end

:usage
cls
echo.
echo.
echo.
echo		       Please specify the drives needed:
echo		(From Win95 CDROM) and (TO client's dir)
echo.
echo.
echo.			   FROM		      TO
echo  For example: install    Y:\win95	    C:\clients
echo.
echo.
echo			       [Win95 CDROM]	     [location of clients tree]
echo.
echo.
goto end

:success
cls
echo.
echo	 The Microsoft Windows 95 Set of files has successfully copied on
echo		      %2\Win95
echo	 Excute NCADMIN.exe to begin
:end
