home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
split.zip
/
READ.ME
< prev
next >
Wrap
Text File
|
1994-08-03
|
4KB
|
128 lines
Notice: This utility was provided to us by another Software Installer
customer. We have been given permission to redistribute this utility
on an "as is" basis. No other documentation was supplied other that
what follows. This code was originally written for OS/2. You may
port this code to other platforms at your own risk as we do not
support this code.
Using SPLIT.EXE:
----------------
1) Copy the file to be split to a temporary directory, e.g. C:\TEMP
2) Copy SPLIT.EXE to C:\TEMP
3) The syntax for SPLIT.EXE is
SPLIT InputFilename.Ext OutputFilename
Example: To split XYZ.AVI, enter:
SPLIT XYZ.AVI ABC
This will split XYZ.AVI into several files called ABC.1, ABC.2,
ABC.3, etc. The size of each split file is approximately 450K.
4) Rename the first split file to the input file.
Example:
RENAME ABC.1 XYZ.AVI
This rename will make writing your package file easier and will allow
Software Installer to treat the joined, large file as one file once it
is installed.
Creating MERGE.CMD
------------------
MERGE.CMD will be called during installation to join the split files
into the original large file. Using MERGE.XMP as an example:
1) Add a JOIN statement for each split file. (Note: Do not include a
JOIN statement for the first split file (e.g. ABC.1) as this was
renamed. You will recreate the original file by joining the split
files in succession.)
2) Add a DEL statment for each split file. (Note: Again, do not include
a DEL statement for the first split file (e.g. ABC.1)).
MERGE.CMD takes 3 parameters:
1) The directory where JOIN.EXE is installed.
2) The directory where the renamed split file (e.g. XYZ.AVI) is
installed.
3) The directory where the remaining split files (e.g. ABC.*) are
installed.
When MERGE.CMD is complete, you will have your original file and the
split files will be deleted.
Updating Your Package File
--------------------------
Now that you have your large file split and MERGE.CMD created, you need
to update your package file.
1) Include a FILE entry to install JOIN.EXE
2) Include a FILE entry to install MERGE.CMD
3) Include a FILE entry to install each of the split files (e.g. XYZ.AVI,
ABC.2, ABC.3, etc.)
4) After the last FILE entry that installs ABC.*, include a FILE entry
to run MERGE.CMD in an exit.
Example:
Assume that you want to join XYZ.AVI, ABC.2, ABC.3, ABC.4, and
ABC.5. In your package file you would add:
FILE
PWSPATH = 'FILE',
SOURCE = 'JOIN.EXE',
PWS = 'JOIN.EXE'
FILE
PWSPATH = 'FILE',
SOURCE = 'MERGE.CMD',
PWS = 'MERGE.CMD'
FILE
PWSPATH = 'WORK',
SOURCE = 'DRIVE: XYZ.AVI',
PWS = 'XYZ.AVI'
FILE
PWSPATH = 'WORK',
SOURCE = 'DRIVE: ABC.2',
PWS = 'ABC.2'
FILE
PWSPATH = 'WORK',
SOURCE = 'DRIVE: ABC.3',
PWS = 'ABC.3'
FILE
PWSPATH = 'WORK',
SOURCE = 'DRIVE: ABC.4',
PWS = 'ABC.4'
FILE
PWSPATH = 'WORK',
SOURCE = 'DRIVE: ABC.5',
PWS = 'ABC.5'
FILE
EXIT = 'EXEC bg tw %EPFIFILEDIR%//MERGE.CMD %EPFIFILEDIR% %EPFIWORKDIR% %EPFIWORKDIR%',
EXITIGNOREERR = 'NO',
EXITWHEN = 'INSTALL'
Note: You may need to add/modify FILE keywords to suit your installation.