home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem MKDISKS.BAT
- rem Cisco TCP/IP Suite 100 for Windows 95
- rem Copyright (c) 1996 Cisco Systems, Inc.
- rem
- rem Creates directories for copying onto floppies
- rem
-
- if "%1" == "" goto help
- if "%2" == "" goto help
- if "%3" == "first" goto first
-
- echo.
- echo Creating directory tree in %2
- echo.
-
-
- if not exist %2\nul mkdir %2
- if not exist %2\nul goto error0
-
- rem *
- rem * create subdirectories
- rem *
-
- if not exist %1\mnstack1.cab goto copy
- if not exist %2\disk_1\nul mkdir %2\disk_1
-
- if not exist %1\mnstack2.cab goto copy
- if not exist %2\disk_2\nul mkdir %2\disk_2
-
- if not exist %1\data.1 goto copy
- if not exist %2\disk_3\nul mkdir %2\disk_3
-
- if not exist %1\data.2 goto copy
- if not exist %2\disk_4\nul mkdir %2\disk_4
-
- if not exist %1\data.3 goto copy
- if not exist %2\disk_5\nul mkdir %2\disk_5
-
- if not exist %1\data.4 goto copy
- if not exist %2\disk_6\nul mkdir %2\disk_6
-
- if not exist %1\data.5 goto copy
- if not exist %2\disk_7\nul mkdir %2\disk_7
-
- if not exist %1\data.6 goto copy
- if not exist %2\disk_8\nul mkdir %2\disk_8
-
- if not exist %1\data.7 goto copy
- if not exist %2\disk_9\nul mkdir %2\disk_9
-
- if not exist %1\data.8 goto copy
- if not exist %2\disk_10\nul mkdir %2\disk_10
-
- if not exist %1\data.9 goto copy
- if not exist %2\disk_11\nul mkdir %2\disk_11
-
-
- :first
- rem *
- rem * copy only the files which are not specified
- rem *
- if "%4" == "" goto exit
- if "%4" == "%1\DATA.1" goto exit
- if "%4" == "%1\DATA.2" goto exit
- if "%4" == "%1\DATA.3" goto exit
- if "%4" == "%1\DATA.4" goto exit
- if "%4" == "%1\DATA.5" goto exit
- if "%4" == "%1\DATA.6" goto exit
- if "%4" == "%1\DATA.7" goto exit
- if "%4" == "%1\DATA.8" goto exit
- if "%4" == "%1\DATA.9" goto exit
- if "%4" == "%1\MNSTACK1.CAB" goto exit
- if "%4" == "%1\MNSTACK2.CAB" goto exit
- copy %4 %2\disk_1
- goto exit
-
-
- :copy
- echo.
- echo Starting file copy...
- echo.
-
- for %%x in (%1\*.*) do call %0 %1 %2 first %%x
-
- if not exist %1\mnstack1.cab goto finish
- copy %1\mnstack1.cab %2\disk_1
-
- if not exist %1\mnstack2.cab goto finish
- copy %1\mnstack2.cab %2\disk_2
-
- if not exist %1\data.1 goto finish
- copy %1\data.1 %2\disk_3
-
- if not exist %1\data.2 goto finish
- copy %1\data.2 %2\disk_4
-
- if not exist %1\data.3 goto finish
- copy %1\data.3 %2\disk_5
-
- if not exist %1\data.4 goto finish
- copy %1\data.4 %2\disk_6
-
- if not exist %1\data.5 goto finish
- copy %1\data.5 %2\disk_7
-
- if not exist %1\data.6 goto finish
- copy %1\data.6 %2\disk_8
-
- if not exist %1\data.7 goto finish
- copy %1\data.7 %2\disk_9
-
- if not exist %1\data.8 goto finish
- copy %1\data.8 %2\disk_10
-
- if not exist %1\data.9 goto finish
- copy %1\data.9 %2\disk_11
-
-
- :finish
- echo.
- echo Finished running MKDISKS
- echo Directories for copying to floppies are in
- echo %2\disk_1
- echo %2\disk_2
- echo %2\disk_3
- echo ...
- echo.
- echo.
- goto exit
-
-
- :error0
- echo.
- echo Could not create the directory %2
- echo.
- echo.
- goto exit
-
-
- :help
- echo.
- echo MKDISKS.BAT
- echo Creates directories for copying Cisco TCP/IP Suite 100 for Windows 95
- echo setup files to floppy disks.
- echo.
- echo Usage:
- echo MKDISKS src_directory dest_directory
- echo.
- echo The following example copies the setup files from CD-ROM device E to
- echo local harddrive C, making the necessary subdirectories below
- echo C:\MN_KIT\WIN95:
- echo MKDISKS D:\MULTINET\WIN95 C:\MN_KIT\WIN95
- echo.
- echo You can then Copy the files to floppies:
- echo COPY C:\MN_KIT\WIN95\DISK_1\*.* A:
- echo COPY C:\MN_KIT\WIN95\DISK_2\*.* A:
- echo ...
- echo.
- goto exit
-
- :exit
-
-