Amstrad DDI-1 manual File and disc copying, Single file copying, Whole disc copiers and checkers

Page 53

examples:

PIP B:=A:*.COM

PIP SAV.BAS=EX1.BAS PIP CON:=EX1.BAS

PIP LST:=EX1.BAS

PIP TYPEIN.TXT=CON:

copy all .COM files from drive A: to drive B: make a copy of EX1.BAS, calling it SAV.BAS

send file EX1.BAS to screen. (Similar effect to TYPE EX1.BAS)

send file EX1.BAS to printer

accept keyboard input and put into a file called TYPEIN.TXT. Note that this operation is terminated by the [CTRL]Z control code, and that in order to get

a newline you must type [CTRL]J after [ENTER] every time. [CTRL]J is the ASCII for linefeed.

Note that PIP cannot be used to copy files from one disc to another on a single drive system. Use FILECOPY instead.

3.7.2 File and disc copying

3.7.2.1 Single file copying

The utility FILECOPY allows you to copy files from one disc to another on a single drive system. It copes with the disc changing and gives full instructions on the screen. If a wild-card filename is specified then FILECOPY asks you to confirm that you indeed wish to copy each file on an individual basis. The program informs you of each filename as each file is copied.

FILECOPY

*.BAS

Copy all the files of type .BAS

FILECOPY

EX1.BAS

Copy the file EX1.BAS

3.7.2.2 Whole disc copiers and checkers

DISCCOPY (for single drive systems) and COPYDISC (for two drive systems) allow you to make a backup copy of the entire disc. They give full instructions on the screen. If the Destination disc is not formatted, or not of the same format as the source disc then these utilities will automatically format the disc correctly as they copy. The companion utilities DISCCHK and CHKDISC allow you to compare two discs and verify that they have exactly the same contents.

3.7.2.3 Cassette files.

Two utilities are available which transfer files between tape and disc. Except for specialist use, it is unlikely that anything other than ASCII, ie plain text, files can usefully be transferred.

Chapter 3.5

AMSTRAD Disc Drive & Interface DDI-1 Manual

Image 53
Contents Page Amstrad Disc Drive & Interface DDI-1 Amstrad Contents Contents Page Connecting the Mains Lead Foundations 1 Setting UpConnecting the DDI-1 to the Computer Computer Interface Unit Main Disc Drive Drive a Computer Write Protection Foundations 2 About DiscsOpen Closed When Your Disc Is Eject Button Indicator LampFoundations Loading Software/Games Drive a disc missing Retry, Ignore or Cancel?Run rolcave ROLCAVE. not foundSyntax error Bad commandDrive a read fail Retry, Ignore or Cancel? Type mismatchFoundations Introducing Amsdos and CP/M Load filename Drive B disc missing Retry, Ignore or CancelDisc Tape.inCpm First Steps Using The CP/M DiscStoring Data Onto Disc CLS? Saving a Program in Memory onto Disc Back to AmsdosBeware EXAMPLE.BAS CatalogLoading From Disc Copying Programs From Disc to Cassette Copying Programs From Disc to DiscCopying Programs From Cassette to Disc Copying Using Disccopy Copying Using the CP/M System DiscCopying started Reading track 0 to Copying Using CopydiscWriting track 0 to Do you want to copy another disc Y/NAborting Checking DiscsDiscchk ChkdiscInstallation Amstrad Disc Drive & Interface DDI-1 Manual Making Working Discs Backup Master DiscBasic only disc Working SYSTEM/UTILITY discTurnkey Amstrad Basic discs DISCCOPY.COMTurnkey CP/M Discs Turnkey Basic using disc suppliedTurnkey Basic onto your Working disc Creating a Turnkey CP/M System discAmbiguous filename Confirm individual files Y/N ? Configuring a CP/M ProgramConfiguring the Output from the package Payroll Configuring the Input to the packageStarting a Turnkey CP/M Package Autostarting a Turnkey CP/M Package Introduction Amsdos PrimerConstruction of Filenames Disc DirectoryAmsdos filenames and filetypes Save PROG.BAS a Save Bprog .BAS Amsdos headersFilenames on two drives Wild cards Examples of Using Amsdos Commands in a programSaving variables and performing a Screen Dump BERT.BAS FRED1.BAS FRED2.BAS FRED3.BAK FRED3.BAS FINISH.BASCloseout NeatPre-empting a Garbage Collection Reference guide to Amsdos commandsWhile not EOF Wend CloseinSummary of Amsdos external commands Summary of Basic commandsSave OPENOUT, Print #9, Write #9, List #9, Closeout CATDIR CPMDisc DISC.INREN ERATape TAPE.INCopying Files File Copying proceduresAmsdos files with headers Ascii filesFile has a header Amstrad Reference guide to Amsdos Error Messages Drive Drive disc is write protected Drive Drive disc missingDrive Drive read fail Drive Drive write failCP/M system tracks CP/M PrimerOperating with CP/M Logging in a disc Configuration Sector Console control codes Switching default drives Direct Console CommandsDIR command ERA commandREN command Transient commandsType command Peripheral ManagementSingle file copying File and disc copyingWhole disc copiers and checkers Cassette filesStat System ManagementDo you want to update your system disc Y/N SetupStat SECRET.BAS $DIR Is this correct Y/NAmsdos Disc GenerationFormat Format D Format I FormatAdvanced programming BootgenMovcpm SysgenAmstrad Disc Drive & Interface DDI-1 Manual Introduction to Logo What is LogoGetting Started Dr. LogoRepeat 4 fd 60 rt Procedures with parametersTo square Repeat 4 fd 60 rt 90 end To squareanysize side repeat 4 fd side rt 90 endEditing programs and procedures Using Variables to remember valuesCs squareanysize 100 rt 45 squareanysize To triangle Repeat 3 fd edge rt 120 endSummary of Dr. Logo primitives Operating hintsAscii Word and List ProcessingChar CountFirst EmptypFput ListArithmetic Operations Logical Operations ?= Logo Logo NotVariables ProceduresText Screen EditingSetsplit ShowGraphic Screen CleanType DotWindow PalSetpal Wrap Turtle GraphicsSetpc SethSetpos Workspace ManagementErn NodesGlist RecycleGprop PlistLoad Disc Files DirSave KEYBOARD, Joystick buttonp?paddle 0 Paddle?make key rc ?keyEnv SoundEnt ReleaseRepeat LabelRun StopCatch ErrorPause ThrowSystem Properties Headers Technical information for the user FirmwareStore requirements Changing DiscsAmsdos messages Error MessagesBios messages Failed to load boot sector Common to ALL Formats Disc OrganisationReturn Parameters Jump Block Interception by AmsdosJump Block Re-Interception by the User 137 #BC9B Intercepted Firmware Calls132 #BC8C 133 #BC8F 134 #BC92 135 #BC95 #BC98 Page Appendix Glossary of Terms CP/M Dr.Logo Primitives TPA Amstrad Disc Drive & Interface DDI-1 Manual Appendix Term Limitations of Remedies Amstrad Disc Drive & Interface DDI-1 Manual Appendix Index ERA Setpos