Flexos User's Guide Provides a Full Description of the Flexos Operating System, Including the Following

Total Page:16

File Type:pdf, Size:1020Kb

Flexos User's Guide Provides a Full Description of the Flexos Operating System, Including the Following FlexOS™ User's Guide Version 1.3 1 073-2003-001 COPYRIGHT Copyright ©"1986 Digital Research Inc. All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language or computer language, in any form or by any means, electronic, mechanical, magnetic, optical. chemical. manual, or otherwise, without the prior written permission of Digital Research Inc.. 60 Garden Court. Box DR!. Monterey, California 93942. DISCLAIMER DIGITAL RESEARCH INC. MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF AND SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES 'OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. Further. Digital Research Inc. reserves the right to revise this publication and to make changes from time to time in the co.ntent hereof without obligation of Digital Research Inc. to notify any person of such revision or changes. NOTICE TO USER This manual should not be construed as any representation or warranty with respect to the software named herein. Occasionally changes or variations exist in the software that are not reflected in the manual. Generally, if such changes or variations are known to exist and to affect the product significantly, a release note or README.DOC file accompanies the manual and distribution disk(s). In that event. be sure to read the release note or README.DOC file before using the product. TRADEMARKS Digital Research and its logo are registered trademarks of Digital Research Inc. FlexOS, DR EDIX, and FlexNet are trademarks of Digital Research Inc. First Edition: November 1986 FOREWORD INTRODUCTION TO FLEXOSTM FlexOS is an advanced multitasking operating system for microcomputers. What does that mean for you? In our daily work we rarely do only one thing at a time, finishing one task and putting it away before picking up the next task. Usually we're doing several things at once: preparing reports, answering the telephone, jotting down notes, and calculating columns of figures. We certainly don't want our computers to be limited to doing only one task at a time. But that is exactly the limitation of most microcomputer systems. For example, if you are preparing a report with a word processing program and need some figures from your spreadsheet program, you would have to close and save your report file, exit the word processor, start the spreadsheet program, retrieve the figures, exit the spreadsheet program, start the word processor again ... you get the idea. With multitasking built into your operating system, you can keep several programs (processes) running simultaneously, and you can hop back and forth between them as you need to. The advantages are clear: faster, more efficient work and none of the frustration of constantly stopping and starting each program. That's what FlexOS will do for you. iii WHAT THIS GUIDE CONTAINS The FlexOS User's Guide provides a full description of the FlexOS operating system, including the following: • the command line and some basic FlexOS commands • directories and subdirectories • wildcard and logical names • windows • input/output redirection • DR EDIX™*, the FlexOS text editor • batch processing • how FlexOS handles errors Section 7 is a reference summary of FlexOS commands. Appendix A describes the role of the system manager, the person who sets up and manages a FlexOS system with more than one user. ON-LINE ERROR MESSAGES FlexOS displays an on-line error message if an error occurs while you are working with the operating system. FlexOS lets you set your own "help level," the amount of information displayed in the error message. If you are a beginning user, you can set a help level so that FlexOS describes each error in detail. At this level FlexOS usually suggests a solution for the error encountered. You can also refer to Appendix B for information on common error situations. *Edix™ is a trademark of Emerging Technology Consultants, Inc. IV If you are an experienced user, you can set your help level so that FlexOS displays a briefer message. Setting the help level is described under the DEFINE command in Section 7. OTHER BOOKS ON FLEXOS The User's Guide is one of several Digital Research... books about FlexOS. The other books in this set include: • FlexOS Programmer's Guide. This book identifies the C­ based software tools and techniques used to write programs that can run on FlexOS. • FlexOS System Guide. This book describes the architecture of the microchip processor that supports FlexOS. Digital Research also publishes microprocessor-specific supplements and programmer's utilities guides to FlexOS. TERMS AND CONVENTIONS Hardware This guide uses the terms "diskette," "hard disk," and "disk" in the following manner: diskette The 3 1/2-inch, 5 1/4-inch or a-inch magnetic disks that can be inserted into and removed from your microcomputer. Your system must have at least one diskette drive. hard disk An internal or external fixed magnetic disk. Your system might not have a hard disk. v disk The term used when information applies to both diskettes and hard disks. For example, "disk drive" means either a diskette drive or a hard disk drive. User Input and FlexOS Output This guide uses boldface and regular type to distinguish between user input and system output, as in the following example. The system prompt (A» is in regular type. Following that is the user input in boldface type. The next line shows what the system returns to the user.. This is also show,n in the regular typeface. A>DIR I FIND "ACCOUNTS PAY" ACCOUNTS PAY 1429 8-18-86 1:42P The text shows user input in all uppercase letters, but you can actually enter commands in uppercase, lowercase, or a combination of the two. vi CONTENTS 1 Basic FlexOS Operation Initial LOGON Instructions 1-1 System Prompt and Command Line. 1-2 Built-In and External Commands. 1-3 ~diting a Command Line. 1-3 Interrupting Command Execution. 1-5 Formatting Disks . .. 1-5 Formatting a Diskette ...... ~ . 1-6 Formatting a Hard Disk. 1-7 Basic File Operations. 1-8 Directories. 1-9 Accessing Subdirectories . .. 1-10 Wildcards ........................................ 1-11 Placing Wildcards . .. 1-11 Star (*) Wildcard. .. 1-11 Question Mark (?) Wildcard. .. 1-12 Caret (") Wildcard . .. 1-13 Logical Names ....................... ; . .. 1-13 Creating and Using Logical Names. .. 1-14 Logical Devices. .. 1-14 Logical Filenames. .. 1-15 Logical Information. .. 1-16 Reserved Logical Names. .. 1-16 Contents 2 Working with Windows FlexOS Windows . 2-1 Windowing Keys. 2-1 Status Window and Message Window . 2-2 Status Window. 2-2 Status Lines . 2-3 Command Menu . 2-4 Command Prompt. 2-5 Message Window. 2-5 Sample Use of Windows . 2-8 3 I/O Redirection, Chaining, and FiI~ering I/O Redirection. 3-1 1/0 Redirection Symbols. 3-1 Redirecting Output to a File or Device. 3-2 Adding Output to a File or Device . .. 3-2 Getting Input from a File or Device . 3-3 Piping Commands. 3-3 Chaining Commands on a Command Line . 3-4 Filtering Data. 3-5 4 DR EDIX Text Editor Introduction to DR EDIX. 4-1 DR EDIX Help Facility . 4-1 DR EDIX Files . 4-2 Learning DR EDIX. 4-2 Starting DR EDIX . 4-3 The DR EDIX Screen. 4-3 Text Area . 4-4 Contents Prompt Area. 4-4 Message Area. 4-5 Status Area. 4-5 Entering and Editing Text. 4-6 Inserting and Overtyping. 4-6 Moving The Cursor . 4-6 Editing Text. 4-7 Opening and Saving Files. 4-9 DR EDIX Backup Files. .. 4-11 Exiting DR EDIX ................ '. .. 4-12 5 Advanced DR EDIX Features Buffers .' ....................... ',' . 5-1 Windows . 5-2 Buffers and Files. 5-3 Status Table. 5-4 Block Commands. 5-5 Marking Blocks. 5-5 Copying Blocks. 5-7 Moving Blocks. 5-7 Deleting Blocks. 5-7 Search and Replace. 5-8 Searching. 5-8 Recovering Search Patterns. 5-9 Searching With Wildcards. 5-9 Replacing . .. 5-10 Going to a Line by Number. .. 5-12 Merging Files. .. 5-12 Changing the Filename. .. 5-13 Contents 6 DR EDIX Commands and Messages DR EDIX Command Summary. 6-1 DR EDIX Messages. 6-6 7 FlexOS Commands Command Summary. 7-1 ASSIGN. 7-5 BACK. 7-7 BACKUP. 7-9 BREAK ........................................ ".. 7-12 CANCEL ~ ..............". .. 7-13 CHDIR . .. 7-16 CHKDSK. ..
Recommended publications
  • Object Oriented Programming
    No. 52 March-A pril'1990 $3.95 T H E M TEe H CAL J 0 URN A L COPIA Object Oriented Programming First it was BASIC, then it was structures, now it's objects. C++ afi<;ionados feel, of course, that objects are so powerful, so encompassing that anything could be so defined. I hope they're not placing bets, because if they are, money's no object. C++ 2.0 page 8 An objective view of the newest C++. Training A Neural Network Now that you have a neural network what do you do with it? Part two of a fascinating series. Debugging C page 21 Pointers Using MEM Keep C fro111 (C)rashing your system. An AT Keyboard Interface Use an AT keyboard with your latest project. And More ... Understanding Logic Families EPROM Programming Speeding Up Your AT Keyboard ((CHAOS MADE TO ORDER~ Explore the Magnificent and Infinite World of Fractals with FRAC LS™ AN ELECTRONIC KALEIDOSCOPE OF NATURES GEOMETRYTM With FracTools, you can modify and play with any of the included images, or easily create new ones by marking a region in an existing image or entering the coordinates directly. Filter out areas of the display, change colors in any area, and animate the fractal to create gorgeous and mesmerizing images. Special effects include Strobe, Kaleidoscope, Stained Glass, Horizontal, Vertical and Diagonal Panning, and Mouse Movies. The most spectacular application is the creation of self-running Slide Shows. Include any PCX file from any of the popular "paint" programs. FracTools also includes a Slide Show Programming Language, to bring a higher degree of control to your shows.
    [Show full text]
  • PGP Desktop for Mac OS X Quick Start Guide Version 10.0
    PGP Desktop for Mac OS X Quick Start Guide Version 10.0 In addition, use PGP Desktop to: What is PGP Desktop? y Use part of your hard drive space as an encrypted virtual disk volume with its own drive letter. PGP Desktop provides comprehensive security for desktops Create protected Zip archives. and laptops, making it possible for enterprises, workgroups, y and individuals to protect sensitive information without y Completely destroy files and folders so that nothing can changing the existing IT infrastructure or disrupting work recover them. processes. This award winning, easy-to-use solution encrypts email, files, virtual volumes, and entire disks from a single New to PGP Desktop? desktop application. Use this step-by-step guide to get started. You will find that, The PGP Desktop family of applications have been combined with PGP Desktop, protecting your data will be as easy as into several bundles. turning a key in a lock. y PGP Desktop Professional includes PGP Desktop Email y This Quick Start Guide helps you install PGP Desktop and and PGP Whole Disk Encryption get started. y PGP Whole Disk Encryption includes PGP Whole Disk y The PGP Desktop User’s Guide provides more detailed Encryption information on PGP Desktop. In it, you will learn what a keypair is, why you might want to create one, how to create one, and how to exchange keys with others so you can encrypt your own data and share data securely with Contents others. y What is PGP Desktop? (page 1) Note: A PGP Desktop license provides you with access to y New to PGP Desktop? (page 1) a certain set of PGP Desktop features.
    [Show full text]
  • TRSDOS 6.2 to LS-DOS 6.3.0 Manual Update
    LS-DOSÔ 6.3 UPDATE FOR TRSDOSâ 6.2.X The LS-DOS 6.3 release is an upgrade for the TRSDOS 6.2 operating system. Several important changes have been made to extend and enhance the operating system and its utilities. The date ranging has been expanded to accept dates through the year 1999. Files will now carry a modification time as well as a date. The DATECONV/CMD program is provided to translate version 6.2 or earlier disks to the 6.3 style dating. The user password has been eliminated from the system. The owner password still remains. The library command ID was added to display a customer service number. Several enhancements have been made to BASIC. The new DISKCOPY/CMD program will duplicate 5" double density floppy disks. Because the LS-DOS 6.3 update is a series of enhancements to TRSDOS 6.2, the primary documentation remains the 6.2 manual and Technical Reference manual. If you have a version of TRSDOS earlier than 6.2, you can obtain the manuals from Radio Shack under the catalog numbers 26-0316 (TRSDOS Version 6 [6.2 DOS manual and disk]), 26-2110 (Model 4/4D [6.2] Technical Reference Manual), or 26-1117 (6.2 DOS manual only). This documentation should be treated as an addendum to the TRSDOS 6.2 information. LS-DOS 6.3 installation instructions Before performing the upgrade, it is recommended that you make several backup copies of the 6.3 master disk. The simplest way to do this is to boot your system using the 6.3 diskette, insert a blank diskette to receive the copy in drive 1, and type the command: DISKCOPY :0 :1 When the copy finishes, you can insert another destination diskette and make another copy.
    [Show full text]
  • Flexos IPO - Summary
    Flexos IPO - Summary Notice to readers This summary must be read as an introduction to the Prospectus. It contains selected information concerning FLEXOS and the Offering. It does not necessarily include all the information that may be important to investors. Any decision to invest in the Shares must be based on the full consideration of the prospectus by the investors. This summary should be read together with- and qualified by- the more detailed information and the financial statements (annexes included) that can be found in the Prospectus. It should also be read together with the information given in the section “Risk Factors”. The Company assumes no liability with respect to this summary, including any translation hereof, unless it is misleading, inaccurate or inconsistent with other sections of the Prospectus. If a claim relating to the information contained in the Prospectus is brought before a court, the plaintiff investor might, under the applicable legislation, have to bear the costs of translating the Prospectus before the legal proceedings are initiated. 1. Risk factors FLEXOS is exposed to many risks; the main ones are summarized below. The main risk that the company is exposed to is related to a partnership contract with a British supplier “ScanSafe”, the leader in web security and, through this contract, with “Postini”, the world leader in electronic mail security, now owned by Google. This contract is not a simple distribution contract, but a close partnership and cooperation agreement for the covered territories. The contract is included for two years and is renewed automatically unless one of the parties ends it by giving a three months notice.
    [Show full text]
  • How to Cheat at Windows System Administration Using Command Line Scripts
    www.dbebooks.com - Free Books & magazines 405_Script_FM.qxd 9/5/06 11:37 AM Page i How to Cheat at Windows System Administration Using Command Line Scripts Pawan K. Bhardwaj 405_Script_FM.qxd 9/5/06 11:37 AM Page ii Syngress Publishing, Inc., the author(s), and any person or firm involved in the writing, editing, or produc- tion (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be obtained from the Work. There is no guarantee of any kind, expressed or implied, regarding the Work or its contents.The Work is sold AS IS and WITHOUT WARRANTY.You may have other legal rights, which vary from state to state. In no event will Makers be liable to you for damages, including any loss of profits, lost savings, or other incidental or consequential damages arising out from the Work or its contents. Because some states do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you. You should always use reasonable care, including backup and other appropriate precautions, when working with computers, networks, data, and files. Syngress Media®, Syngress®,“Career Advancement Through Skill Enhancement®,”“Ask the Author UPDATE®,” and “Hack Proofing®,” are registered trademarks of Syngress Publishing, Inc.“Syngress:The Definition of a Serious Security Library”™,“Mission Critical™,” and “The Only Way to Stop a Hacker is to Think Like One™” are trademarks of Syngress Publishing, Inc. Brands and product names mentioned in this book are trademarks or service marks of their respective companies.
    [Show full text]
  • Tarifa De Precios I.V.A
    TARIFA DE PRECIOS I.V.A. no incl. Consulte posibles actualizaciones GRIFERÍA MONOMANDO BAÑO Código Artículo € A LAVABO • Monomando lavabo con cartucho cerámico • Maneta metálica • Conexiones flexibles • Portacadenilla FO 33 001 Monomando Lavabo MENTHA 25,27 BIDÉ • Monomando lavabo con cartucho cerámico • Maneta metálica • Conexiones flexibles • Portacadenilla FO 33 002 Monomando Bidé MENTHA 25,27 DUCHA • Excéntricas 150-+24mm • Maneta metálica • Cartucho cerámico • Equipo de ducha rocador+flexo+soporte articulado FO 33 003 Monomando ducha MENTHA 35,11 BAÑERA • Excéntricas 150-+24mm • Maneta metálica • Cartucho cerámico • Equipo de ducha rociador+flexo+soporte articulado FO 33 004 Monomando Bañera MENTHA 41,49 GRIFERÍA MONOMANDO COCINA Código Artículo € COCINA CAÑO CLÁSICO • Cartucho cerámico • Maneta metálica • Conexiones flexibles inox • Caño giratorio FO 33 051 Monomando Cocina caño Clásico LIRIA 31,91 COCINA EXTRAIBLE (BAJO) Cartucho cerámico Maneta metálica Conexiones flexibles inox Caño giratorio FO 33 072 Monomando Cocina Extraible bajo LLANTIA 47,87 COCINA EXTRAIBLE Cartucho cerámico Maneta metálica Conexiones flexible inox Caño giratorio FO 33 071 Monomando Cocina Extraible RAFF 70,48 COCINA PARED • Cartucho cerámico • Maneta metálica • Excéntricas 150-+24mm • Caño giratorio FO 33 052 Monomando Cocina pared ARNICA 45,21 FONTANERÍA A-1 TARIFA DE PRECIOS I.V.A. no incl. Consulte posibles actualizaciones GRIFERÍA MONOMANDO BAÑO A Código Artículo € LAVABO • Monomando lavabo con cartucho cerámico • Conexiones flexibles • Portacadenilla
    [Show full text]
  • Carbon Copy Cloner Documentation: English
    Carbon Copy Cloner Documentation: English Getting started with CCC System Requirements, Installing, Updating, and Uninstalling CCC CCC License, Registration, and Trial FAQs Trouble Applying Your Registration Information? Establishing an initial backup Preparing your backup disk for a backup of Mac OS X Restoring data from your backup What's new in CCC Features of CCC specific to Lion and greater Release History Carbon Copy Cloner's Transition to a Commercial Product: Frequently Asked Questions Credits Example backup scenarios I want to clone my entire hard drive to a new hard drive or a new machine I want to backup my important data to another Macintosh on my network I want to backup multiple machines or hard drives to the same hard drive I want my backup task to run automatically on a scheduled basis Backing up to/from network volumes and other non-HFS volumes I want to back up my whole Mac to a Time Capsule or other network volume I want to defragment my hard drive Backup and archiving settings Excluding files and folders from a backup task Protecting data that is already on your destination volume Managing previous versions of your files Automated maintenance of CCC archives Advanced Settings Some files and folders are automatically excluded from a backup task The Block-Level Copy Scheduling Backup Tasks Scheduling a task and basic settings Performing actions Before and After the backup task Deferring and skipping scheduled tasks Frequently asked questions about scheduled tasks Email and Growl notifications Backing Up to Disk Images
    [Show full text]
  • Windows 95 & NT
    Windows 95 & NT Configuration Help By Marc Goetschalckx Version 1.48, September 19, 1999 Copyright 1995-1999 Marc Goetschalckx. All rights reserved Version 1.48, September 19, 1999 Marc Goetschalckx 4031 Bradbury Drive Marietta, GA 30062-6165 tel. (770) 565-3370 fax. (770) 578-6148 Contents Chapter 1. System Files 1 MSDOS.SYS..............................................................................................................................1 WIN.COM..................................................................................................................................2 Chapter 2. Windows Installation 5 Setup (Windows 95 only)...........................................................................................................5 Internet Services Manager (Windows NT Only)........................................................................6 Dial-Up Networking and Scripting Tool....................................................................................6 Direct Cable Connection ..........................................................................................................16 Fax............................................................................................................................................17 Using Device Drivers of Previous Versions.............................................................................18 Identifying Windows Versions.................................................................................................18 User Manager (NT Only) .........................................................................................................19
    [Show full text]
  • Wikipedia: Design of the FAT File System
    Design of the FAT file system A FAT file system is a specific type of computer file system architecture and FAT a family of industry-standard file systems utilizing it. Developer(s) Microsoft, SCP, IBM, [3] The FAT file system is a legacy file system which is simple and robust. It Compaq, Digital offers good performance even in very light-weight implementations, but Research, Novell, cannot deliver the same performance, reliability and scalability as some Caldera modern file systems. It is, however, supported for compatibility reasons by Full name File Allocation Table: nearly all currently developed operating systems for personal computers and FAT12 (12- many home computers, mobile devices and embedded systems, and thus is a bit version), well suited format for data exchange between computers and devices of almost FAT16 (16- any type and age from 1981 through the present. bit versions), Originally designed in 1977 for use on floppy disks, FAT was soon adapted and FAT32 (32-bit version used almost universally on hard disks throughout the DOS and Windows 9x with 28 bits used), eras for two decades. Today, FAT file systems are still commonly found on exFAT (64- floppy disks, USB sticks, flash and other solid-state memory cards and bit versions) modules, and many portable and embedded devices. DCF implements FAT as Introduced 1977 (Standalone the standard file system for digital cameras since 1998.[4] FAT is also utilized Disk BASIC-80) for the EFI system partition (partition type 0xEF) in the boot stage of EFI- FAT12: August 1980 compliant computers. (SCP QDOS) FAT16: August 1984 For floppy disks, FAT has been standardized as ECMA-107[5] and (IBM PC DOS 3.0) ISO/IEC 9293:1994[6] (superseding ISO 9293:1987[7]).
    [Show full text]
  • Instructions for Adept Utility Programs
    Instructions for Adept Utility Programs Version 12.1 ¨ Adept Utility Disk For use with V+ 12.1 (Edit D & Later) FLIST README.TXT for program information General-Purpose Utility Programs Robot/Motion Utility Programs AdeptVision Utility Programs Network Utility Programs AdeptModules SPEC Data 1984-1997 by Adept Technology, Inc. Instructions for Adept Utility Programs Version 12.1 ¨ Adept Utility Disk For use with V+ 12.1 (Edit D & Later) FLIST README.TXT for program information General-Purpose Utility Programs Robot/Motion Utility Programs AdeptVision Utility Programs Network Utility Programs AdeptModules SPEC Data 1984-1997 by Adept Technology, Inc. Part # 00962-01000, Rev. A September, 1997 ® 150 Rose Orchard Way • San Jose, CA 95134 • USA • Phone (408) 432-0888 • Fax (408) 432-8707 Otto-Hahn-Strasse 23 • 44227 Dortmund • Germany • Phone (49) 231.75.89.40 • Fax(49) 231.75.89.450 adept 41, rue du Saule Trapu • 91300 • Massy • France • Phone (33) 1.69.19.16.16 • Fax (33) 1.69.32.04.62 te c hnology, inc. 1-2, Aza Nakahara Mitsuya-Cho • Toyohashi, Aichi-Ken • 441-31 • Japan • (81) 532.65.2391 • Fax (81) 532.65.2390 The information contained herein is the property of Adept Technology, Inc., and shall not be reproduced in whole or in part without prior written approval of Adept Technology, Inc. The information herein is subject to change without notice and should not be construed as a commitment by Adept Technology, Inc. This manual is periodically reviewed and revised. Adept Technology, Inc., assumes no responsibility for any errors or omissions in this document.
    [Show full text]
  • 05 Vcloud Services Consultant
    Optimizing Windows for VMware View 4.5 Optimizing Windows for VMware View™ 4.5 (Optimizing Windows 7, Windows Vista and XP) Version 2.0 For use only by VMware PSO and VMware Solution Providers Consulting Service Delivery Aid – Not a Customer Deliverable Optimizing Windows for VMware View 4.5 Version History Date Ver. Author Description Rev iewers February 2011 V2.0 Tim Federwitz Second Release (Added Dav id Richardson, John Windows XP and Vista) Dodge, Matt Coppinger, Matt Wood August 2010 V1.0 Tim Federwitz First Release (Windows 7 John Dodge, Matt only ) Coppinger, Matt Lesak, Ry an Miersma, Justin Venezia © 2011 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. This product is covered by one or more patents listed at http://www.vmware.com/download/patents.html . VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. VMware, Inc 3401 Hillview Ave Palo Alto, CA 94304 www.vmware.com © 2011 VMware, Inc. All rights reserved. Page 2 of 44 Optimizing Windows for VMware View 4.5 Contents 1. Introduction ......................................................................................... 4 1.1 Comparing Default and Optimized Windows 7 Installations ........................................ 4 1.2 How to use this Guide ............................................................................................... 4 2.
    [Show full text]
  • Older Operating Systems
    Older Operating Systems Class Notes # 10 Batch Files (Part 2) October 23, 2003 IF Condition When a given condition is true, the statement is executed. When the given condition is false, the statement is not executed. Figure one illustrates the flow chart for the IF condition. IF entry point No Decision Yes Statement (perform some action) IF exit point Figure 1: IF condition flow chart The IF condition tests the following three conditions: • The ERRORLEVEL of a program • Whether a string is equal to another string • Whether a file exists Using IF to test ERRORLEVEL The syntax for testing the ERRORLEVEL is: IF ERRORLEVEL number command This form of the IF condition determines whether the value of ERRORLEVEL is greater than or equal to a number specified in the number parameter. IF NOT ERRORLEVEL number command This form of the IF condition determines whether the value of ERRORLEVEL is not greater than or equal to a number specified in the number parameter. 1 If the specified condition is true, DOS executes the command specified in the command parameter. Otherwise, DOS skips to the next line in the batch file without executing the command in the command parameter. The only DOS commands that leave an ERRORLEVEL (exit) code are: BACKUP, DISKCOMP, DISKCOPY, FORMAT, GRAFTABL, KEYB, REPLACE, RESTORE, and XCOPY. Many other programs generate exit codes, however. For example, table one contains codes that are generated by the DISKCOPY command. Table one: DISKCOPY codes Code Description 0 The operation was successful. 1 A read/write error occurred that did not terminate the disk copy operation.
    [Show full text]