DOS and VB Utilities
This code was written because I needed it. If you like it, then I'm glad to be of service. Most of this code has been around since DOS 3.3. It works fine under Win 3.1 and/or Win 95/98.
All code downloaded and used at your own risk. It all works fine on my machines.
This is some code that I contributed to the Infozip project, probably one of the greatest pieces of public service available on the web. Mike White of that project kindly changed the Infozip DLLs so that they could be called from Visual Basic 5. I tore most of my hair out trying to solve the problems of VB 5 and C Callback logic :)
This code works on my machine, I hope it works on yours. Please do not ask me for versions of this code for VB 3 and VB 4. It is not possible to call these DLLs from VB 3 or VB 4 as neither language supports Callbacks.
SPLIT 1.2 - Copyright (C) M. R. Le Voi Systems Consultants - Use /? for help
Syntax: SPLIT filename [d:] [/flags]
Optional flags are :-
/nnn - maximum size of an output file in k - default 1440
/? - display this help message
If d: is omitted, A: is assumed.
The maximum number of output files is 99.
1440 is the maximum that can be specified via the /nnn switch.
How often have you had a file that won't fit on a diskette? Even after you zipped it up? SPLIT is the answer.
When the DOS BACKUP command was no good because it was DOS release dependent and PKZIP did not support diskette spanning, this was the only way to perform this action. Here is an example:
REPRO 1.1 - M. R. Le Voi Systems Consultants - Use /? for help
Syntax: REPRO <file1> <file2> [NEW|OLD|MOD] [BIN] [SKIP(xxx)] [COUNT(yyy)]
Where:-
file1 - name of input file
file2 - name of output file
xxx - number of input records/bytes to be skipped
yyy - number of input records/bytes to be written
NEW is default. If OLD is requested, output file will be overwritten unconditionally.
If MOD is requested, input data will be appended to the output file.
If BIN is specified, SKIP/COUNT are byte values.
For all MVS users out there (and for the PC community too), here is a utility I use rarely but is invaluable when you need it! Here are 2 recent examples of its use:
A Mainframe report downloaded to the PC is 3 MB in size and 30,000 lines long. You want to extract lines 9001 to 9100 and 22001 to 22050 for importing into EXCEL. The file is so big, it is impossible to edit normally. Solution:
A PC file has one spurious byte right in the middle of it which prevents UUDECODE from decoding the file. Solution: