ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ZT_FTest ³ ³ ³ ³ by ZT Technologies ³ ³ ³ ³ Version 1.10 ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Copyright (C) 1992-1996 by ZT Technologies All rights reserved Zack's Shack BBS Warner Robins, GA (912)923-0642, HST/DS v.Everything FIDO address (1:3611/18) Magic file name: ZT_FTEST Internet: http://www.zttech.com TABLE OF CONTENTS ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Table of Contents .................................................. i Introduction ....................................................... 1 Feature List ....................................................... 2 About the Author ................................................... 3 Disclaimer ......................................................... 3 License ............................................................ 4 Support ............................................................ 4 Included files ..................................................... 5 System Requirements ................................................ 5 Operation .......................................................... 12 Three favorite quotes: "Imagination is more important than knowledge." - Einstein "Imagination is the mother of invention." - Unknown "Let him who would move the world, first move himself." - Socrates i INTRODUCTION ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ What is ZT_FTest? Files are uploaded to BBSes every day. Ever get a file and didn't know what type of compression was used on it, or if it's even a compressed file or GIF? If so, then this program may be of some assistance to you. You can use this program within a batch file to identify what type of compressed archive, or GIF file you are checking. This will enable you to setup errorlevel checks to determine how to process the file. ZT_FTest will first check the identity of the file, then exit with an errorlevel indicating what type of file you are working with. Upon exit from the program your batch file can test the errorlevel and jump to a specified label before continuing the processing of the file. One of the main areas you will see this utility used is within the VIEW.BAT file included with Clark Developments PCBoard(tm) software. The program TESTFILE.EXE is included, but it doesn't provide the same support this program does. FEATURE LIST ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ þ Identifies 8 archive types, including ARC, ARJ, LZH, PAK, RAR, SQZ ZIP, and ZOO. þ Identifies self-extracting archives mentioned above. þ Identifies GIF files. þ Exits to DOS with an errorlevel equivalent to the file type. þ It's free 1 ABOUT THE AUTHORS (Tom Carroll & Zack Jones) ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Tom: I have written several other utilities and one shareware program. This was my first release of a program written in Turbo Pascal. I decided to move to TP from BASIC because I found that it was limiting me in a few ways, however, I still fall back to my BASIC ways when I need to do something quick and dirty... I wrote in BASIC for about 7 years and became very proficient with it, but sometimes you just have to take the next step. I'm active duty in the U.S. Coast Guard, and have been a "Sysop" for their computer systems at my duty stations for about 9 years. Zack: Like Tom I started out programming in in BASIC and have moved on to Pascal. I haven't regretted that move once. %^) ZT Technologies was formed due to a partnership formed between Tom and Zack. It was a mutual agreement that due to Tom's Coast Guard obligations, and not being around full time to support the software, Zack would step in and take care of things. Zack has been programming for 7 years in BASIC and Pascal. DISCLAIMER ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ THIS PRODUCT IS PROVIDED "AS IS" WITHOUT GUARANTEE OR WARRANTY EITHER EXPRESSED OR IMPLIED. YOU ASSUME ALL RISKS AS TO THE RESULTS AND PERFORMANCE OF THIS PROGRAM. ZT TECHNOLOGIES DOES NOT ASSUME ANY LIABILITY ARISING FROM THE USE OF THIS PROGRAM OR DOCUMENT. ZT TECHNOLOGIES DOES NOT MAKE ANY REPRESENTATIONS REGARDING THE USE OF THIS PRODUCT REGARDING MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. IF THIS PRODUCT BECOMES DEFECTIVE, YOU (NOT ZT TECHNOLOGIES) ASSUME THE ENTIRE COST OF SERVICING, REPAIR, OR CORRECTION. YOU ASSUME ALL RISKS AS TO THE RELIABILITY, CORRECTNESS, ACCURACY, OR OTHERWISE OF THE PROGRAM. ZT TECHNOLOGIES RESERVES THE RIGHT TO MAKE CHANGES TO THE PROGRAM AND ITS DOCUMENTATION WITHOUT NOTICE. THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. FURTHER, ZT TECHNOLOGIES WILL NOT BE HELD LIABLE FOR ANY DAMAGES THAT MAY RESULT IN, BUT NOT LIMITED TO, SYSTEM DAMAGE, SERVICE, REPAIR, CORRECTION, LOSS OF PROFIT, LOST SAVINGS, OR ANY OTHER INCIDENTAL, CONSEQUENTIAL OR SPECIAL DAMAGES OF ANY NATURE WHATSOEVER FROM THE USE OF THIS PROGRAM. ZT_FTest software and this document are Copyright (C) 1992-96 by ZT Technologies, all rights reserved. 2 LICENSE ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ZT_FTest is being released as FREEWARE. The source code will remain the property of ZT Technologies unless otherwise released. No one may alter, modify, or reverse engineer ZT_FTest for any reason, including but not limited to decompiling-compiling, patching, or disassembling. You may freely distribute & copy this program for others subject to the above restrictions and the following: þ ZT_FTest is copied in unmodified form including this file. þ There is no charge for copying except for the cost of disks. þ ZT_FTest is not included in another software package without the express written permission of ZT Technologies. SUPPORT ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ If you should find any problems with this program, or you have any requests or recommendations, you may reach us on the support BBS, or at the FIDO address listed on the front cover. We may also be reached in the PCBNET and PCBoard FIDO echoes or on the PCBoard support board. You may log on to the support BBS by using the following info: First Name: ZT Last Name: TECH Password: SUPPORT The support BBS information may be found in the PROGRAMS.DWS file included in the ZTFTnnn.ZIP archive. Sometimes, there may be a need for debug code to be released. This code is used to track down specific problems which aren't normally encountered on our systems. If debug code is not available, then you're the first person that has reported a problem, so please leave your specifics, and also your configuration file so we may be able to troubleshoot the problem. Upon releasing a new version or an upgrade, you don't have to download the entire distribution archive, you may look for the archive ZTFTnnnU.ZIP on the support BBS or on your local BBS systems. The upgrade archive will have the same number as the release version, except it'll have a U after the version number. 3 INCLUDED FILES ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Files in this archive: DESC.SDI - Rime compliant description file FILE_ID.DIZ - A Clark Development compliant file description LASER.BAT - Batch file to print docs on HP laser printer LASER.DAT - HP laser printer codes for documentation PROGRAMS.DWS - List of ZT Technologies products READ.ME - Last minute info (not always included) REGISTER.DOC - A registration form for other software releases ZT_FTEST.DOC - This manual ZT_FTEST.EXE - The main program ZT_FTEST.HIS - ZT_FTest's modification history We originally compressed this program as ZTFTnnn.ZIP, but it may be compressed with any other archive program you wish to use as long as all the above listed files are included within the new archive. For your protection we've compressed this archive with the -AV stamp. The -AV stamp could appear as either of these: Authentic files Verified! # NAP248 Tom Carroll-The Data Shop Authentic files Verified! # NQM638 Zack O. Jones The latest version will always be available on the support BBS using the magic filename of ZT_FTEST or in the ZT Technologies support conference. SYSTEM REQUIREMENTS ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 8086 or higher processor DOS 3.0 or higher 640k of Memory Monochrome monitor 11k of program execution memory available 4 OPERATION ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ The following errorlevels will be sent to DOS upon execution: 0 = Unknown file type 9 = GIF format 1 = ARC format 11 = ARC (Self extracting) 2 = ARJ format 12 = ARJ (Self extracting) 3 = LZH format 13 = LZH (Self extracting) 4 = PAK format 14 = PAK (Self extracting) 5 = RAR format 15 = RAR (Self extracting) 6 = SQZ format 16 = SQZ (Self extracting) 7 = ZIP format 17 = ZIP (Self extracting) 8 = ZOO format 18 = ZOO (Self extracting) Errorlevel 99 will be used if the file passed on the command line could not be found. The versions below are the archive utilities that have been tested: ARC - Version 6.00 by System Enhancement Associates ARJ - Version 2.30 by Robert K. Jung LHA - Version 2.12 by Haruyasu Yoshizaki PAK - Version 2.51 by NoGate Consulting RAR - Version 1.54 by SQZ - Version 1.08.2 by J I Hammarberg ZIP - Version 2.04c by PKWare Inc. ZOO - Version 2.1 by Rahul Dhesi You must first change the file name in any previously used batch files to ZT_FTEST.EXE. This next example is a sample of a PCBoard style PCBVIEW.BAT file: @echo off zt_ftest %1 if errorlevel == 18 goto ZOO if errorlevel == 17 goto ZIP if errorlevel == 16 goto SQZ if errorlevel == 15 goto RAR if errorlevel == 14 goto PAK if errorlevel == 13 goto LZH if errorlevel == 12 goto ARJ if errorlevel == 11 goto ARC if errorlevel == 9 goto GIF if errorlevel == 8 goto ZOO if errorlevel == 7 goto ZIP if errorlevel == 6 goto SQZ if errorlevel == 5 goto RAR if errorlevel == 4 goto PAK if errorlevel == 3 goto LZH if errorlevel == 2 goto ARJ if errorlevel == 1 goto ARC if errorlevel == 0 goto END goto error 5 OPERATION (continued) ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ :arc arc l %1 > pcbview.txt goto end :arj arj l %1 > pcbview.txt goto end :lha lha l %1 > pcbview.txt goto end :pak pak v %1 > pcbview.txt goto end :rar rar l %1 > pcbview.txt :sqz sqz l %1 > pcbview.txt goto end :zip viewzip %1 goto end :zoo zoo l %1 > pcbview.txt goto end :gif :error :end 6