SURVO MM Help System (web edition)

Usage 1: PCOPY <file>,<new_file>,<start>,<n> 
PCOPY copies <n>*M bytes starting from position <start>*M
of <file> as a <new_file>.
Constant M is given by SIZE=<integer>.
Default is M=1 bytes.

Usage 2: PCOPY <file1>,<file2> 
appends <file2> to (adds to the end of) <file1>.

Examples of usage on next pages

Example:
Assume that SURVO MM should be installed in a PC having no CD drive
but only a diskette drive.
Then the installation file SETUP.EXE (currently about 11.5 million
bytes) can be split into 8 smaller files S0.X,S1.X,...,S7.X
by the PCOPY operation (in another PC).
After copying these small files to 8 diskettes the original setup
file is restored in the target PC by the second form of the PCOPY
operation.

The series of operations could be as follows.

Making a copy of the SURVO MM SETUP.EXE file to diskettes:

DIR *.EXE /  Checking the size of the setup file.
SETUP.EXE    11317273 25.10.2003 11:22

SIZE=1420000 / Selecting a suitable size for small files
               int(11317273/SIZE)+1=8 diskettes needed
PCOPY SETUP.EXE S0.X 0 1
PCOPY SETUP.EXE S1.X 1 1
PCOPY SETUP.EXE S2.X 2 1
PCOPY SETUP.EXE S3.X 3 1
PCOPY SETUP.EXE S4.X 4 1
PCOPY SETUP.EXE S5.X 5 1
PCOPY SETUP.EXE S6.X 6 1
PCOPY SETUP.EXE S7.X 7 1

Showing sizes of "parts":
DIR *.X
S0.X         1420000 27.10.2003 11:46
S1.X         1420000 27.10.2003 11:46
S2.X         1420000 27.10.2003 11:46
S3.X         1420000 27.10.2003 11:46
S4.X         1420000 27.10.2003 11:46
S5.X         1420000 27.10.2003 11:46
S6.X         1420000 27.10.2003 11:46
S7.X         1377273 27.10.2003 11:46
            11317273 (total size by touch mode = original size)

These files could now be copied to diskettes and loaded back in the
target PC.
Then the following commands regenerate the setup file demonstrated
here as SETUP2.EXE

FILE DEL SETUP2.EXE / Possible existing file deleted
PCOPY SETUP2.EXE S0.X
PCOPY SETUP2.EXE S1.X
PCOPY SETUP2.EXE S2.X
PCOPY SETUP2.EXE S3.X
PCOPY SETUP2.EXE S4.X
PCOPY SETUP2.EXE S5.X
PCOPY SETUP2.EXE S6.X
PCOPY SETUP2.EXE S7.X

Checking the result by comparing the original and the restored file:
DIR *.EXE
SETUP.EXE    11317273 25.10.2003 11:22
SETUP2.EXE   11317273 27.10.2003 11:46

Comparision byte by byte by the (File Compare routine):
>FC SETUP.EXE SETUP2.EXE >RESULT.TXT
LOADP RESULT.TXT
Comparing files SETUP.EXE and SETUP2.EXE
FC: no differences encountered


More information on Survo from www.survo.fi
Copyright © Survo Systems 2001-2012.
webmaster'at'survo.fi