@rem
@rem  SNADISK.CMD:  Create floppy diskettes containing the SNA Server
@rem  files.  This command file resides on the distribution CD in the
@rem  "\disks" subdirectory, which also contains subdirs for each of
@rem  the diskette contents.
@rem

@echo off
if "%1" == "" goto Usage

if "%1" == "A:" goto DriveOk
if "%1" == "a:" goto DriveOk
if "%1" == "B:" goto DriveOk
if "%1" == "b:" goto DriveOk

@echo.
@echo SNADISK command line error!
goto Usage

:DriveOk
set OneDisk=no
if "%2" == "" goto AllDisks

set OneDisk=yes
goto %2

:AllDisks
:disk1
:DISK1
@echo Insert diskette for DISK1 into drive %1 and
@pause
xcopy disk1 %1\ /s /e /v
label %1 SNADISK1
if "%OneDisk%" == "yes" goto End

:disk2
:DISK2
@echo Insert diskette for DISK2 into drive %1 and
@pause
xcopy disk2 %1\ /s /e /v
label %1 SNADISK2
if "%OneDisk%" == "yes" goto End

:disk3
:DISK3
@echo Insert diskette for DISK3 into drive %1 and
@pause
xcopy disk3 %1\ /s /e /v
label %1 SNADISK3
if "%OneDisk%" == "yes" goto End

:disk4
:DISK4
@echo Insert diskette for DISK4 into drive %1 and
@pause
xcopy disk4 %1\ /s /e /v
label %1 SNADISK4
if "%OneDisk%" == "yes" goto End

:disk5
:DISK5
@echo Insert diskette for DISK5 into drive %1 and
@pause
xcopy disk5 %1\ /s /e /v
label %1 SNADISK5
if "%OneDisk%" == "yes" goto End

:disk6
:DISK6
@echo Insert diskette for DISK6 into drive %1 and
@pause
xcopy disk6 %1\ /s /e /v
label %1 SNADISK6
if "%OneDisk%" == "yes" goto End

:disk7
:DISK7
@echo Insert diskette for DISK7 into drive %1 and
@pause
xcopy disk7 %1\ /s /e /v
label %1 SNADISK7
if "%OneDisk%" == "yes" goto End

:disk8
:DISK8
@echo Insert diskette for DISK8 into drive %1 and
@pause
xcopy disk8 %1\ /s /e /v
label %1 SNADISK8
if "%OneDisk%" == "yes" goto End

:disk9
:DISK9
@echo Insert diskette for DISK9 into drive %1 and
@pause
xcopy disk9 %1\ /s /e /v
label %1 SNADISK9
if "%OneDisk%" == "yes" goto End

:disk10
:DISK10
@echo Insert diskette for DISK10 into drive %1 and
@pause
xcopy disk10 %1\ /s /e /v
label %1 SNADISK10
if "%OneDisk%" == "yes" goto End

:disk11
:DISK11
@echo Insert diskette for DISK11 into drive %1 and
@pause
xcopy disk11 %1\ /s /e /v
label %1 SNADISK11
if "%OneDisk%" == "yes" goto End

:disk12
:DISK12
@echo Insert diskette for DISK12 into drive %1 and
@pause
xcopy disk12 %1\ /s /e /v
label %1 SNADISK12
if "%OneDisk%" == "yes" goto End

:disk13
:DISK13
@echo Insert diskette for DISK13 into drive %1 and
@pause
xcopy disk13 %1\ /s /e /v
label %1 SNADISK13
if "%OneDisk%" == "yes" goto End

:tn3270
:TN3270
@echo Insert diskette for TN3270 into drive %1 and
@pause
xcopy tn3270 %1\ /s /e /v
label %1 TN3270
if "%OneDisk%" == "yes" goto End

:rassna
:rassna
@echo Insert diskette for RASSNA into drive %1 and
@pause
xcopy rassna %1\ /s /e /v
label %1 RASSNA
if "%OneDisk%" == "yes" goto End

:msdos_1
:MSDOS_1
@echo Insert diskette for MS-DOS CLIENT into drive %1 and
@pause
xcopy msdos_1 %1\ /s /e /v
label %1 SNAMSDOS
if "%OneDisk%" == "yes" goto End

:msdos_2
:MSDOS_2
@echo Insert diskette for MS-DOS 3270 APPLET into drive %1 and
@pause
xcopy msdos_2 %1\ /s /e /v
label %1 MSDOS3270
if "%OneDisk%" == "yes" goto End

:os2
:OS2
@echo Insert diskette for OS/2 CLIENT into drive %1 and
@pause
xcopy os2 %1\ /s /e /v
label %1 SNAOS2
if "%OneDisk%" == "yes" goto End

:win3x_1
:WIN3X_1
@echo Insert diskette for WINDOWS 3.x CLIENT #1 into drive %1 and
@pause
xcopy win3x_1 %1\ /s /e /v
label %1 SNAWIN3X_1
if "%OneDisk%" == "yes" goto End

:win3x_2
:WIN3X_2
@echo Insert diskette for WINDOWS 3.x CLIENT #2 into drive %1 and
@pause
xcopy win3x_2 %1\ /s /e /v
label %1 SNAWIN3X_2
if "%OneDisk%" == "yes" goto End

:win3x_3
:WIN3X_3
@echo Insert diskette for WINDOWS 3.x CLIENT #3 into drive %1 and
@pause
xcopy win3x_3 %1\ /s /e /v
label %1 SNAWIN3X_3
if "%OneDisk%" == "yes" goto End

@echo.
@echo All done!
@echo.
goto End

:Usage
@echo.
@echo SNADISK will create floppy diskettes containing the SNA Server files
@echo so you can install on machines without CD-ROM or network capability.
@echo.
@echo To use SNADISK, you must supply the drive letter of the floppy drive
@echo you want to use, for example, SNADISK A: or SNADISK B:.  This will
@echo create the entire 16-disk set, although you can stop after any disk.
@echo.
@echo You can create just a single disk by supplying the disk name after
@echo the floppy drive letter, for example SNADISK A: WIN16_1.  Please use
@echo one of the following disk names -- upper or lower case are allowed,
@echo but don't mix cases, i.e. DISK3 and disk3 are okay, but Disk3 isn't.
@echo.
@echo     disk1 disk2 disk3 disk4 disk5 disk6 disk7 disk8 disk9 disk10
@echo     disk11 disk12 disk13
@echo     tn3270
@echo     rassna
@echo     msdos_1 msdos_2 
@echo     win3x_1 win3x_2 win3x_3 os2
@echo.

:End
