Batch Commands
From GEAR Software Knowledgebase
In GEAR PRO Professional Edition and GEAR PRO Mastering Edition a new feature is implemented called Batch Files. This allows the user to create an automated process for their own uses. They simple create a simple text file with the appropriate commands, rename the extension of this file from .txt to .gbf and they now have a executable batch file that will open GEAR and run through its commands.
Batch files themselves are very singular, they do exactly what they are told, and nothing else. This means they run through the series of commands given, and are not open to if statements. If you want to have inputed variables, you will have to make use of Dosshell or some programming language that can create batch files for you based on input from a user.
Batch files are not made in GEAR for automated coding, but merely to run typical automatic process that are well known by one simple call. For example backing up a specific folder once a week can be as easy as making one simple batch file, and running it whenever needed, as opposed to re-creating the project everytime a new file is added to the folder.
Here is the long and short list of Batch commands and what they do as of API Version = 3.54.020.01 :
Syntax explanation:
- [optional] - Anything within brackets is optional and may be completely omitted if not used.
- <required> - Anything within the carrot brackets are requred, and may NOT be omitted.
- [optional<required>] - This is optional, but if it is used, the text within it becomes required.
- <required[optional]> - This is required, but one of the syntax commands within it is optional.
General Batch Commands
HELP
Syntax:
HELP [<cmd>] Displays short help information on a GEAR command.
| Examples: |
- HELP
- HELP initcdr
LOG
Syntax:
LOG [<log_file_name>] Starts the logging of commands in the specified file, or stops the logging if logging has already been started.
| Examples: |
- LOG "C:\TEST\Logfile.txt"
GETAPIVERSION
Syntax:
GETAPIVERSION Displays the version/build of the GEAR Toolkit API that is used by this application.
| Examples: |
- GETAPIVERSION
BATCH
Syntax:
BATCH [-a] <batch_file_name> Starts executing commands from the specified batch file. The [-a] option can be used for unattended operation.
| Examples: |
- BATCH NewBatchFile.gbf -a
WAIT
Syntax:
WAIT [number_of_seconds] Waits for number_of_seconds seconds before continuing. If not specified the message 'OK to continue' will be prompted.
| Examples: |
- WAIT 60
The above will pause the program for 1 minute
Settings Batch Commands
INITGEN
Syntax:
INITGEN Initializes the generator and adds all generator commands to the parser. Also used in conjunction with EXITGEN, GETGENPARMS, SETGENPARMS, GETGENDEFAULTS, and SETGENDEFAULTS. If you want to set a parameter for the generator you have to follow these three steps:
- EXITGEN
- SETGENPARMS, or SETGENDEFAULTS
- INITGEN
It is ONLY possible to set generator parameters in this fashion.
| Examples: |
- INITGEN
EXITGEN
Syntax:
EXITGEN Closes the generator and removes all generator commands from the parser. All opened volumes are optimized and stored automatically. Also used in conjunction with INITGEN, GETGENPARMS, SETGENPARMS, GETGENDEFAULTS, and SETGENDEFAULTS. If you want to set a parameter for the generator you have to follow these three steps:
- EXITGEN
- SETGENPARMS, or SETGENDEFAULTS
- INITGEN
It is ONLY possible to set generator parameters in this fashion.
| Examples: |
- EXITGEN
GETGENPARMS
Syntax:
GETGENPARMS Displays the current parameters of the generator module. Also used in conjunction with INITGEN, EXITGEN, SETGENPARMS, GETGENDEFAULTS, and SETGENDEFAULTS. If you want to set a parameter for the generator you have to follow these three steps:
- EXITGEN
- SETGENPARMS, or SETGENDEFAULTS
- INITGEN
It is ONLY possible to set generator parameters in this fashion.
| Examples: |
- GETGENPARMS
- Example of output from command (Results will vary):
The relevant settings for the generator are:
| SystemIdf |
| PublisherIdf= |
| DataPreparerIdf=GEAR SOFTWARE |
| ApplicationIdf= |
| CopyRightFileIdf= |
| AbstractFileIdf= |
| BibliographicFileIdf= |
| MaxDirNestingLevel=24 |
| IsoJolietHandling=6 (Pure ISO 9660, translate to ISO names (level 1), truncate to 8+3) |
| UDFVersion=150 |
| AddRockRidgeInfo=FALSE |
| SpecifyStartSector=FALSE |
| LoadHiddenFiles=TRUE |
| LoadSystemFiles=TRUE |
| ArchiveOnly=FALSE |
| ArchiveReset=FALSE |
| MakeFilesHidden=FALSE |
| ParallelLayers=FALSE |
| DVDCPMIByte=80h |
| DVD9Layer2SplitOffset=130310 |
| DVD10Side2SplitOffset=130432 |
| DVD18Side1Layer2SplitOffset=130310 |
| DVD18Side2Layer1SplitOffset=259312 |
| DVD18Side2Layer2SplitOffset=402468 |
| Selected recorder interface: GEARAspi driver (cyclic buffering)\ |
| Driver found: GEARAspi for NT. |
| Bus 0 found: GEARPort PnP, supports 8 targets, bus type: unknown. |
| JLMS DVD-ROM XJ-HD166 revision DD05 found on bus ID 0, target ID 0, LUN 0 |
| SAMSUNG CD-R/RW SW-252S revision R901 found on bus ID 0, target ID 1, LUN 0 |
| HP DVD Writer 630c revision CH16 found on bus ID 0, target ID 2, LUN 0 |
| PLEXTOR DVDR PX-712A revision 1.07 found on bus ID 0, target ID 3, LUN 0 |
| Recorder JLMS DVD-ROM XJ-HD166 used. |
SETGENPARMS
Syntax:
SETGENPARMS <parameter> <value> Changes one of the current parameters of the generator module. Also used in conjunction with INITGEN, GETGENPARMS, EXITGEN, GETGENDEFAULTS, and SETGENDEFAULTS. If you want to set a parameter for the generator you have to follow these three steps:
- EXITGEN
- SETGENPARMS, or SETGENDEFAULTS
- INITGEN
It is ONLY possible to set generator parameters in this fashion.
| Examples: |
- SETGENPARMS MaxDirNestingLevel=20
- SETGENPARMS AddRockRidgeInfo=TRUE
NOTE: Use GETGENPARMS to see parameters allowed.
- Parameters are:
| SystemIdf |
| PublisherIdf= |
| DataPreparerIdf=GEAR SOFTWARE |
| ApplicationIdf= |
| CopyRightFileIdf= |
| AbstractFileIdf= |
| BibliographicFileIdf= |
| MaxDirNestingLevel=24 |
| IsoJolietHandling=6 (Pure ISO 9660, translate to ISO names (level 1), truncate to 8+3) |
| UDFVersion=150 |
| AddRockRidgeInfo=FALSE |
| SpecifyStartSector=FALSE |
| LoadHiddenFiles=TRUE |
| LoadSystemFiles=TRUE |
| ArchiveOnly=FALSE |
| ArchiveReset=FALSE |
| MakeFilesHidden=FALSE |
| ParallelLayers=FALSE |
| DVDCPMIByte=80h |
| DVD9Layer2SplitOffset=130310 |
| DVD10Side2SplitOffset=130432 |
| DVD18Side1Layer2SplitOffset=130310 |
| DVD18Side2Layer1SplitOffset=259312 |
| DVD18Side2Layer2SplitOffset=402468 |
| Selected recorder interface: GEARAspi driver (cyclic buffering)\ |
| Driver found: GEARAspi for NT. |
| Bus 0 found: GEARPort PnP, supports 8 targets, bus type: unknown. |
| JLMS DVD-ROM XJ-HD166 revision DD05 found on bus ID 0, target ID 0, LUN 0 |
| SAMSUNG CD-R/RW SW-252S revision R901 found on bus ID 0, target ID 1, LUN 0 |
| HP DVD Writer 630c revision CH16 found on bus ID 0, target ID 2, LUN 0 |
| PLEXTOR DVDR PX-712A revision 1.07 found on bus ID 0, target ID 3, LUN 0 |
| Recorder JLMS DVD-ROM XJ-HD166 used. |
GETGENDEFAULTS
Syntax:
GETGENDEFAULTS Displays the default parameters of the generator module. Also used in conjunction with INITGEN, GETGENPARMS, SETGENPARMS, EXITGEN, and SETGENDEFAULTS. If you want to set a parameter for the generator you have to follow these three steps:
- EXITGEN
- SETGENPARMS, or SETGENDEFAULTS
- INITGEN
It is ONLY possible to set generator parameters in this fashion.
| Examples: |
- GETGENDEFAULTS
- Example of output from command:
The relevant settings for the generator are:
| SystemIdf= |
| PublisherIdf= |
| DataPreparerIdf=GEAR SOFTWARE |
| ApplicationIdf= |
| CopyRightFileIdf= |
| AbstractFileIdf= |
| BibliographicFileIdf= |
| MaxDirNestingLevel=24 |
| IsoJolietHandling=6 (Pure ISO 9660, translate to ISO names (level 1), truncate to 8+3) |
| UDFVersion=150 |
| AddRockRidgeInfo=FALSE |
| SpecifyStartSector=FALSE |
| LoadHiddenFiles=TRUE |
| LoadSystemFiles=TRUE |
| ArchiveOnly=FALSE |
| ArchiveReset=FALSE |
| MakeFilesHidden=FALSE |
| ParallelLayers=FALSE |
| DVDCPMIByte=80h |
| DVD9Layer2SplitOffset=130310 |
| DVD10Side2SplitOffset=130432 |
| DVD18Side1Layer2SplitOffset=130310 |
| DVD18Side2Layer1SplitOffset=259312 |
| DVD18Side2Layer2SplitOffset=402468 |
SETGENDEFAULTS
Syntax:
SETGENDEFAULTS <parameter> <value> Changes one of the default parameters of the generator module. Also used in conjunction with INITGEN, GETGENPARMS, SETGENPARMS, GETGENDEFAULTS, and EXITGEN. If you want to set a parameter for the generator you have to follow these three steps:
- EXITGEN
- SETGENPARMS, or SETGENDEFAULTS
- INITGEN
It is ONLY possible to set generator parameters in this fashion.
| Examples: |
- SETGENDEFAULTS SpecifyStartSector=FALSE
NOTE: Use GETGENDEFAULTS to see parameters allowed.
- Parameters are:
| SystemIdf= |
| PublisherIdf= |
| DataPreparerIdf=GEAR SOFTWARE |
| ApplicationIdf= |
| CopyRightFileIdf= |
| AbstractFileIdf= |
| BibliographicFileIdf= |
| MaxDirNestingLevel=24 |
| IsoJolietHandling=6 (Pure ISO 9660, translate to ISO names (level 1), truncate to 8+3) |
| UDFVersion=150 |
| AddRockRidgeInfo=FALSE |
| SpecifyStartSector=FALSE |
| LoadHiddenFiles=TRUE |
| LoadSystemFiles=TRUE |
| ArchiveOnly=FALSE |
| ArchiveReset=FALSE |
| MakeFilesHidden=FALSE |
| ParallelLayers=FALSE |
| DVDCPMIByte=80h |
| DVD9Layer2SplitOffset=130310 |
| DVD10Side2SplitOffset=130432 |
| DVD18Side1Layer2SplitOffset=130310 |
| DVD18Side2Layer1SplitOffset=259312 |
| DVD18Side2Layer2SplitOffset=402468 |
INITCDR
Syntax:
INITCDR Initializes a CD/DVD recorder. This command is also used in conjunction with EXITCDR, SETCDRDEFAULTS, SETCDRPARMS, GETCDRDEFAULTS, and GETCDRPARMS. To set a CDR paramater you take these three steps:
- Use EXITCDR
- Use SETCDRPARMS or SETCDRDEFAULTS
- Use INITCDR
This is the ONLY way to change your CDR settings.
| Examples: |
- INITCDR
EXITCDR
Syntax:
EXITCDR Deinitializes the current CD/DVD recorder. This command is also used in conjunction with INITCDR, SETCDRDEFAULTS, SETCDRPARMS, GETCDRDEFAULTS, and GETCDRPARMS. To set a CDR paramater you take these three steps:
- Use EXITCDR
- Use SETCDRPARMS or SETCDRDEFAULTS
- Use INITCDR
This is the ONLY way to change your CDR settings.
| Examples: |
- EXITCDR
GETCDRPARMS
Syntax:
GETCDRPARMS Displays the parameters of the CD/DVD recorder currently initialized. This command is also used in conjunction with EXITCDR, SETCDRDEFAULTS, SETCDRPARMS, GETCDRDEFAULTS, and INITCDR. To set a CDR paramater you take these three steps:
- Use EXITCDR
- Use SETCDRPARMS or SETCDRDEFAULTS
- Use INITCDR
This is the ONLY way to change your CDR settings.
| Examples: |
- GETCDRPARMS
- Example of output from command:
The default settings for the Recorder module are: (This was run on a JLMS DVD-ROM XJ-HD166)
| WriteEnable=TRUE |
| ImageReadBufferSize=131072 |
| ImageWriteBufferSize=131072 |
| ReadCDSpeedData=48 |
| ReadCDSpeedAudio=48 |
| ReadDVDSpeed=8 |
| Fixation=TRUE |
| MultiSessionCD=FALSE |
| AllowDiscOverflow=FALSE |
| UsePhysicalImageFiles=FALSE |
| VerifyAfterWrite=FALSE |
| EjectAfterWrite=TRUE |
| EjectBeforeVerify=TRUE |
| EraseConfirmation=TRUE |
| NrOfCopiesToWrite=1 |
| DiscInfoRetries=1 |
| ScanIndexes=TRUE |
| ScanIndexCheckATime=TRUE |
| ScanIndexCheckCRC=TRUE |
| CorrectPostgap=FALSE |
| LogC2ReadErrors=TRUE |
| C2ReadErrorRetries=25 |
SETCDRPARMS
Syntax:
SETCDRPARMS <parameter> <value> Changes one parameters of the CD/DVD recorder currently initialized. This command is also used in conjunction with EXITCDR, SETCDRDEFAULTS, INITCDR, GETCDRDEFAULTS, and GETCDRPARMS. To set a CDR paramater you take these three steps:
- Use EXITCDR
- Use SETCDRPARMS or SETCDRDEFAULTS
- Use INITCDR
This is the ONLY way to change your CDR settings.
| Examples: |
- SETCDRPARMS EjectAfterWrite=TRUE
NOTE: Use GETCDRPARMS to see parameters allowed.
- Parameters are:
(This was run on a JLMS DVD-ROM XJ-HD166)
| WriteEnable=TRUE |
| ImageReadBufferSize=131072 |
| ImageWriteBufferSize=131072 |
| ReadCDSpeedData=48 |
| ReadCDSpeedAudio=48 |
| ReadDVDSpeed=8 |
| Fixation=TRUE |
| MultiSessionCD=FALSE |
| AllowDiscOverflow=FALSE |
| UsePhysicalImageFiles=FALSE |
| VerifyAfterWrite=FALSE |
| EjectAfterWrite=TRUE |
| EjectBeforeVerify=TRUE |
| EraseConfirmation=TRUE |
| NrOfCopiesToWrite=1 |
| DiscInfoRetries=1 |
| ScanIndexes=TRUE |
| ScanIndexCheckATime=TRUE |
| ScanIndexCheckCRC=TRUE |
| CorrectPostgap=FALSE |
| LogC2ReadErrors=TRUE |
| C2ReadErrorRetries=25 |
GETCDRDEFAULTS
Syntax:
GETCDRDEFAULTS Displays the default parameters of the CD/DVD recorder module. This command is also used in conjunction with EXITCDR, SETCDRDEFAULTS, SETCDRPARMS, INITCDR, and GETCDRPARMS. To set a CDR paramater you take these three steps:
- Use EXITCDR
- Use SETCDRPARMS or SETCDRDEFAULTS
- Use INITCDR
This is the ONLY way to change your CDR settings.
| Examples: |
- GETCDRDEFAULTS
- Example of output from command:
The default settings for the Recorder module are:
| WriteEnable=TRUE |
| WriteMethodCD=2 (track at once) |
| WriteMethodDVD=1 (disc at once) |
| ImageReadBufferSize=131072 |
| ImageWriteBufferSize=131072 |
| WriteCDRSpeed=4 |
| WriteCDRWSpeed=4 |
| WriteDVDRSpeed=1 |
| WriteDVDRWSpeed=1 |
| ReadCDSpeedData=40 |
| ReadCDRWSpeedData=40 |
| ReadCDSpeedAudio=40 |
| ReadCDRWSpeedAudio=40 |
| ReadDVDSpeed=20 |
| ReadDVDRWSpeed=20 |
| Fixation=TRUE |
| MultiSessionCD=TRUE |
| MultiSessionDVD=TRUE |
| AllowDiscOverflow=FALSE |
| WriteBurnProof=TRUE |
| UsePhysicalImageFiles=FALSE |
| VerifyAfterWrite=FALSE |
| EjectAfterWrite=TRUE |
| EjectBeforeVerify=TRUE |
| EraseConfirmation=TRUE |
| NrOfCopiesToWrite=1 |
| DiscInfoRetries=4 |
| ScanIndexes=TRUE |
| ScanIndexCheckATime=TRUE |
| ScanIndexCheckCRC=TRUE |
| CorrectPostgap=FALSE |
| LogC2ReadErrors=TRUE |
| C2ReadErrorRetries=25 |
| CDRInterface=2 (GEARAspi driver (cyclic buffering)) |
| SCSIBufferSize=65536 |
| NrOfCyclicBuffers=64 |
| DisableScreenSaver=TRUE |
| ForceSpeedDetection=FALSE |
| SCSIBusID=2 |
| TargetID=4 |
| TargetLUN=0 |
SETCDRDEFAULTS
Syntax:
SETCDRDEFAULTS <parameter> <value> Changes one of the default parameters of the CD/DVD recorder module. This command is also used in conjunction with EXITCDR, INITCDR, SETCDRPARMS, INITCDR, and GETCDRPARMS. To set a CDR paramater you take these three steps:
- Use EXITCDR
- Use SETCDRPARMS or SETCDRDEFAULTS
- Use INITCDR
This is the ONLY way to change your CDR settings.
| Examples: |
- SETCDRDEFAULTS WriteCDRWSpeed=8
NOTE: Use GETCDRDEFAULTS to find out the parameters.
- Parameters used:
| WriteEnable=TRUE |
| WriteMethodCD=2 (track at once) |
| WriteMethodDVD=1 (disc at once) |
| ImageReadBufferSize=131072 |
| ImageWriteBufferSize=131072 |
| WriteCDRSpeed=4 |
| WriteCDRWSpeed=4 |
| WriteDVDRSpeed=1 |
| WriteDVDRWSpeed=1 |
| ReadCDSpeedData=40 |
| ReadCDRWSpeedData=40 |
| ReadCDSpeedAudio=40 |
| ReadCDRWSpeedAudio=40 |
| ReadDVDSpeed=20 |
| ReadDVDRWSpeed=20 |
| Fixation=TRUE |
| MultiSessionCD=TRUE |
| MultiSessionDVD=TRUE |
| AllowDiscOverflow=FALSE |
| WriteBurnProof=TRUE |
| UsePhysicalImageFiles=FALSE |
| VerifyAfterWrite=FALSE |
| EjectAfterWrite=TRUE |
| EjectBeforeVerify=TRUE |
| EraseConfirmation=TRUE |
| NrOfCopiesToWrite=1 |
| DiscInfoRetries=4 |
| ScanIndexes=TRUE |
| ScanIndexCheckATime=TRUE |
| ScanIndexCheckCRC=TRUE |
| CorrectPostgap=FALSE |
| LogC2ReadErrors=TRUE |
| C2ReadErrorRetries=25 |
| CDRInterface=2 (GEARAspi driver (cyclic buffering)) |
| SCSIBufferSize=65536 |
| NrOfCyclicBuffers=64 |
| DisableScreenSaver=TRUE |
| ForceSpeedDetection=FALSE |
| SCSIBusID=2 |
| TargetID=4 |
| TargetLUN=0 |
GETDISKDEFAULTS
Syntax:
GETDISKDEFAULTS Displays the default parameters of the hard disk module.
help gettapedefaults
| Examples: |
- GETDISKDEFAULTS
- Example of output from command:
| DiskInterface=1 (GEARAspi driver (double buffering)) |
| SCSIBufferSize=65536 |
| DoubleBuffering=TRUE |
| SCSIBusID=0 |
| TargetID=5 |
| TargetLUN=0 |
SETDISKDEFAULTS
Syntax:
SETDISKDEFAULTS <parameter> <value> Changes one of the default parameters of the hard disk module.
| Examples: |
- SETDISKDEFAULTS TargetID=4
NOTE: use GETDISKDEFAULTS to find out the parameters.
- Parameters used:
| DiskInterface=1 (GEARAspi driver (double buffering)) |
| SCSIBufferSize=65536 |
| DoubleBuffering=TRUE |
| SCSIBusID=0 |
| TargetID=5 |
| TargetLUN=0 |
Recorder Batch Commands
RECORDERINFO
Syntax:
RECORDERINFO Displays the supported features of the currently selected drive in the device menu.
| Examples: |
- RECORDERINFO
CHECKDRIVE
Syntax:
CHECKDRIVE Shows the tray and disc status of the currently selected drive, without performing any eject or retract operation.
| Examples: |
- CHECKDRIVE
FORMAT
Syntax:
FORMAT Formats an unformmatted DVD+RW disc for usage, or a CD-RW/DVD-RW disc for fixed packet writing.
| Examples: |
- FORMAT
EJECT
Syntax:
EJECT Ejects the caddy. (Opens the tray of the drive currently selected.) The GEAR Command RETRACT is used to close the device.
| Examples: |
- EJECT
RETRACT
Syntax:
RETRACT Retracts the tray of the drive. The GEAR Command EJECT is used to close the device.
| Examples: |
- RETRACT
LOCKDRIVE
Syntax:
LOCKDRIVE Locks the currently selected drive. This prevents user operation of the OPEN/CLOSE (EJECT) button on the drive. It also prevents the commands: EJECT and RETRACT from functioning.
| Examples: |
- LOCKDRIVE
UNLOCKDRIVE
Syntax:
UNLOCKDRIVE Unlocks the currently selected drive. This allows user operation of the OPEN/CLOSE (EJECT) button on the drive. It also allows the use of the EJECT and RETRACT commands.
| Examples: |
- UNLOCKDRIVE
Project Management Commands
General
GETWORKINGDIR
Syntax:
GETWORKINGDIR Displays the current working directory.
| Examples: |
- GETWORKINGDIR
NOTE: See also SETWORKINGDIR, GETWORKINGDIRECTORY, and SETWORKINGDIRECTORY
SETWORKINGDIR
Syntax:
SETWORKINGDIR <dir_name> Sets the current working directory.
| Examples: |
- SETWORKINGDIR "C:\Program Files\"
NOTE: See also GETWORKINGDIR, GETWORKINGDIRECTORY, and SETWORKINGDIRECTORY
GETWORKINGDIRECTORY
Syntax:
GETWORKINGDIRECTORY Displays the current working directory.
| Examples: |
- GETWORKINGDIRECTORY
NOTE: See also GETWORKINGDIR, SETWORKINGDIR, and SETWORKINGDIRECTORY
SETWORKINGDIRECTORY
Syntax:
SETWORKINGDIRECTORY <dir_name> Sets the current working directory.
| Examples: |
- SETWORKINGDIRECTORY
NOTE: See also GETWORKINGDIR, SETWORKINGDIR, and GETWORKINGDIRECTORY
Volume
VDIR
Syntax:
VDIR Displays a list of existing volumes in the current directory.
| Examples: |
- VDIR
SELVOL
Syntax:
SELVOL <vol_name> Selects an existing volume from the current working directory. If you do not specify a volume name it will open a message box requesting one.
| Examples: |
- SELVOL MyVolumeName
OPENVOL
Syntax:
OPENVOL <vol_name> Opens an existing volume. If you do not specify a volume name it will open a message box requesting one.
| Examples: |
- OPENVOL VolumeName
NEWVOL
Syntax:
NEWVOL <vol_name> <2|3|6|18|23|63|74|76|80|82|90|99|428|509|922> Creates a new CD volume with the specified name and disc capacity in minutes. If you do not specify a volume name or volume capacity it will open a message box requesting one.
NOTE: 428, 509 and 922 are reserved for DVD5 and DVD9 projects.
| Examples: |
- NEWVOL VolumeName 509
GETVOLINFO
Syntax:
GETVOLINFO Displays information about the currently selected volume.
| Examples: |
- GETVOLINFO
GETVOLPARMS
Syntax:
GETVOLPARMS Lists the parameters of the currently selected GEAR volume.
| Examples: |
- GETVOLPARMS
Example Output:
| Current Volume Parameters |
| DVDCPMIByte=80h |
| ParallelLayers=FALSE |
| DVD9Layer2SplitOffset=130310 |
SETVOLPARMS
Syntax:
SETVOLPARMS <parameter> <value> Changes the parameters for the currently selected GEAR volume.
| Examples: |
- SETVOLPARMS ParallelLayers="TRUE"
NOTE - Parameters consist of:
| Current Volume Parameters |
| DVDCPMIByte=80h |
| ParallelLayers=FALSE |
| DVD9Layer2SplitOffset=130310 |
CLOSEVOL
Syntax:
CLOSEVOL Closes the currently opened (selected) volume.
| Examples: |
- CLOSEVOL
VERVOL
Syntax:
VERVOL Verifies the virtual images of all tracks in the selected volume and checks if physical track images can be created.
| Examples: |
- VERVOL
PHYSVOL
Syntax:
PHYSVOL [<file_name>] Creates a physical track image file for all tracks in the volume.
| Examples: |
- PHYSVOL "ThisVolume"
DELVOL
Syntax:
DELVOL <vol_name> Deletes the specified volume.
| Examples: |
- DELVOL "ThisVol"
Tracks
TDIR
Syntax:
TDIR Displays a list of the tracks within the selected volume.
| Examples: |
- TDIR "ThisVol"
SELTRK
Syntax:
SELTRK <track_nr> Selects a track in the selected volume.
| Examples: |
- SELTRK "1"
NEWTRK
Syntax:
NEWTRK <ISO | DA | XA> [<track_nr>] Creates a new track in the selected volume.
| Examples: |
- NEWTRK ISO 1
GETTRACKINFO
Syntax:
GETTRACKINFO Displays information about the currently selected track.
| Examples: |
- GETTRACKINFO
- Example of output from command:
The current settings are:
| Current track info: |
| Track number: 1 |
| Track type: ISO/UDF Video |
| Track size: 4171712 frames |
| Minimized track size 2884080 (frames) |
| Last index number in track: 1 |
| IsoJolietHandling=6 (Pure ISO 9660, translate to ISO names (level 1), truncate to 8+3) |
| AddRockRidgeInfo=FALSE |
| UDFVersion=102 |
| Physical image does not exist |
GETTRACKPARMS
Syntax:
GETTRACKPARMS Lists the settings of the currently selected volume and track.
| Examples: |
- GETTRACKPARMS
- Example of output from command:
The current settings are:
| The relevant settings for the current volume are: |
| VolumeIdf=701 DVD-9 NO CSS |
| SystemIdf= |
| PublisherIdf= |
| DataPreparerIdf=GEAR SOFTWARE |
| ApplicationIdf= |
| CopyRightFileIdf= |
| AbstractFileIdf= |
| BibliographicFileIdf= |
| SpecifyStartSector=FALSE |
| LoadHiddenFiles=TRUE |
| LoadSystemFiles=TRUE |
| ArchiveOnly=FALSE |
| ArchiveReset=FALSE |
| MakeFilesHidden=FALSE |
| MaxDirNestingLevel=24 |
| Index0Frames=150 |
| ISRCCode= |
| CDControlByte=41h |
SETTRACKPARMS
Syntax:
SETTRACKPARMS <parameter> <value> Changes the parameters for the currently selected track.
| Examples: |
- SETTRACKPARMS MakeFilesHidden=TRUE
FREE
Syntax:
FREE Displays the free space in the selected track.
| Examples: |
- FREE
VERTRK
Syntax:
VERTRK Verifies the virtual track and checks if a physical track image can be created.
| Examples: |
- VERTRK
NEWTRKEXT
Syntax:
NEWTRKEXT <track_image_file_name> <track_type> [N:<track_nr>] [S:<sector_size>] [+P:<pause>] [O:<offset>] [L:<length<] Add an existing physical track image file to the selected volume.
| Examples: |
- NEWTRKEXT "C:\Track.iso" ISO 1
PHYSTRK
Syntax:
PHYSTRK [<file_name> | -d <target_id>] [-s <sector_size>] [-eccedc] [-scramble] Creates a physical track image in a file, or on a raw SCSI hard disk, with the optional sector size, ECC/EDC calculation and scrambing.
| Examples: |
- PHYSTRK "C:\Test.iso" -s 2048
ERASESESSION
Syntax:
ERASESESSION [-uncloseonly] Erases the current CD-RW disc. If the "-uncloseonly" option is specified, the session is unclosed (unfixated) only. If not, the session is erased completely.
| Examples: |
- ERASESESSION
ERASETRACK
Syntax:
ERASETRACK <sector_address> Erases (part of) the last track on the current CD-RW disc. If <sector_address> is specified, the tail of the track is erased starting from <sector_address>. If not, the track is erased completely.
| Examples: |
- ERASETRACK
DELTRK
Syntax:
DELTRK <track_nr> Deletes the specified track in the selected volume.
| Examples: |
- DELTRK 1
File Management Commands
GETDISKSPACE
Syntax:
GETDISKSPACE [<dir_spec>] Determines the free hard disk space in the specified directory. If no option is entered a text box will pop up and prompt you for the drive to scan.
| Examples: |
- GETDISKSPACE C:
- GETDISKSPACE
Example output from above line:
Please enter specification of directory: User Inputs "c:"
Directory c:\: free space is 30027 MB
DIR
Syntax:
DIR [<dir_name>] [/S] [/P] Displays the contents of the specified or the current directory. Use /S option to list files in all subdirectories also. Use /P option for paged output.
| Examples: |
- DIR "C:\temp" /S
LS
Syntax:
LS [-r] [-iso] [<file_spec>] Displays the contents of the specified or the current directory. Use -r option to list files in all subdirectories also. Use -iso option to list ISO info.
| Examples: |
- LS -r
CD
Syntax:
CD <dir_name> Changes to the specified directory.
| Examples: |
- CD Temp
NEWDIR
Syntax:
NEWDIR <dir_name> Creates a new directory in the track image (data track only).
| Examples: |
- NEWDIR Temp
MKDIR
Syntax:
MKDIR [-u <uid>] [-g <gid>] [-m <mode>] <dir_name> Creates a new directory specified by <dir_name>. If the -u and/or -g options are specified the owner and/or group id(s) are set to <uid> and/or <gid> respectively. If the -m option is specified the mode is set to <mode>.
| Examples: |
- MKDIR Temp
RENAME
Syntax:
RENAME <old_name> <new_name> Renames a file or directory within a project image.
| Examples: |
- RENAME Temp NewTemp
RM
Syntax:
RM [-r] <file_spec>|<dir_spec> Deletes the specified file(s) and/or dir(s) (-r option) from the image.
| Examples: |
- RM -r Temp
- RM Thisfile.txt
RMDIR
Syntax:
RMDIR <dir_name> Deletes the specified directory, if empty.
| Examples: |
- RMDIR EmptyDir
COPY
Syntax:
COPY <file_spec> Copies specified file(s) into the image.
| Examples: |
- COPY ThisFile.txt
CP
Syntax:
CP [-r] <source_spec> <dest_spec> Copies the specified file(s) or directory tree(s) (-r option) into the current image directory.
| Examples: |
- CP ThisFile.txt
- CP -r ThisDir
COPYTREE
Syntax:
COPYTREE <os_dir_tree> [<cd_dir>] Copies the OS directory tree into the image, into the specified or the current directory.
| Examples: |
- COPYTREE FullDir IntoThisDir
MV
Syntax:
MV <old_name> <new_name> moves (renames only) a file or directory.
| Examples: |
- MV WasCalledThis.txt IsNowCalledThis.txt
DELDIR
Syntax:
DELDIR <dir_name> Deletes the specified directory, if empty.
| Examples: |
- DELDIR TempDir
- DELDIR "TempDir With Spaces"
DELTREE
Syntax:
DELTREE <dir_tree> Deletes the specified directory tree from the image.
| Examples: |
- DELTREE TreeDir
- DELTREE "TreeDir With Spaces"
DELETE
Syntax:
DELETE <file_spec> Deletes the specified file(s) from the image.
| Examples: |
- DELETE Test.txt
- DELETE "File With Spaces.doc"
CHMOD
Syntax:
CHMOD [-R] <mode> <file_spec>/<dir_spec> Changes the modes of the specified file(s) and dir(s) (-R option) in the current image directory.
| Examples: |
- CHMOD 777 Test.txt
- CHMOD -R 555 TempDir
CHGRP
Syntax:
CHGRP [-r] <gid> <file_spec>/<dir_spec> Sets the group ids of the specified file(s) and dir(s) (-r option) in the current image directory to <gid>.
| Examples: |
- CHGRP TempGroup Test.txt
- CHGRP -r SuperGroup TempDir
CHOWN
Syntax:
CHOWN [-r] <uid> <file_spec>/<dir_spec> Sets the owner ids of the specified file(s) and dir(s) (-r option) in the current image directory to <uid>.
| Examples: |
- CHOWN NewOwner Test.doc
- CHOWN -r Owner TempDir
Audio Batch Commands
PLAYMP3
Syntax:
PLAYMP3 <MP3 file> Plays a MP3 audio file.
| Examples: |
- PLAYMP3 "C:\Test\Song.mp3"
PLAYWAVE
Syntax:
PLAYWAVE <Wave file> Plays a Wave audio file.
| Examples: |
- PLAYWAVE "C:\Test\Song.wav"
MP3TOWAVE
Syntax:
MP3TOWAVE <MP3 file> <Wave file> Converts a MP3 audio file to a wave file.
| Examples: |
- MP3TOWAVE "C:\Test\Song.mp3" "C:\Test\Wav\Song.wav"
ADDCDTEXT
Syntax:
ADDCDTEXT [-TRK <trknr>] [– t <title>] [-p <performer>] [-s <songwriter>] [–c <composer>] [-a <arranger>] [-m <message>] [-i <IDCode>] [-g <genre>] [-pr <providerinfo>] [-gc <genrecode>] [-lc <languagecode>] [-cc <charactercode>] [-cf] Adds CD-Text information to a GEAR volume.
| Examples: |
- ADDCDTEXT -TRK 2 -p "Some Singer" -s "Some Song"
- ADDCDTEXT -TRK 5 -t "Just a title"
DDP Batch Commands
VERIFYFILECRC
Syntax:
VERIFYFILECRC [-d] <name> [<crc_value>] Verifies a CRC value on a single file or on all files in a DDP folder [-d] containing CHECKSUM.TXT file.
| Examples: |
- No example at this time...
CDTODDPDIR
Syntax:
CDTODDPDIR -d <output_dir> [-s <sub_dir>] [-o] Converts a CD or DVD disc to DDP files in a directory on the hard disk. The -o options forces overwrite of existing files.
| Examples: |
- No example at this time...
WRITEDDPDIR
Syntax:
WRITEDDPDIR -d <output_dir> [-ext <type>] <name> Writes DDP output for a GEAR volume, or an external image file of the specified type, to a directory on the hard disk.
| Examples: |
- No example at this time...
Tape Batch Commands
SCANTAPE
Syntax:
SCANTAPE Scans for tape units on all target/SCSI ID's, on all SCSI and/or IDE busses/adapters, using the currently selected driver interface.
| Examples: |
- SCANTAPE
CDTOTAPE
Syntax:
CDTOTAPE [-d] [<output_dir_spec>] Converts a CD or DVD disc to an ANSI labeled DDP pre-master tape. The -d option forces on the fly copy. If -d is not specified, the output_dir_spec specifies the temp directory to use.
| Examples: |
- CDTOTAPE -d
GETTAPEDEFAULTS
Syntax:
GETTAPEDEFAULTS Displays the default parameters of the tape module.
| Examples: |
- GETTAPEDEFAULTS
- Example of output from command:
The current settings are:
| DDP1FormatTapeForCD=TRUE |
| DDP2FormatTapeForDVD=TRUE |
| NoCMFForDVDVideo=TRUE |
| ControlDat2054=TRUE |
| DDP2ForCDAudio=TRUE |
| AddDDPChecksums=TRUE |
| GenerateLog=TRUE |
| DDP1ZeroPadding=FALSE |
| FileOptionForCD=2 (Writing separate tape files for each track.) |
| FileOptionForDVD=2 (Writing separate tape files for each track.) |
| DVDMode1TrackSectorSize=2048 |
| DVDMode1BlockingFactor=16 |
| CDMode1TrackSectorSize=2048 |
| CDMode1TrackBlockingFactor=4 |
| CDMode1TrackWithPregapPostgap=TRUE |
| CDMode2TrackSectorSize=2336 |
| CDMode2TrackBlockingFactor=4 |
| CDMode2TrackWithPregapPostgap=TRUE |
| CDDATrackWithPause=TRUE |
| WriteIdentTxtOnTape=FALSE |
| VerifyAfterWrite=FALSE |
| UnloadAfterWrite=TRUE |
| SSCRST=4 |
| UsePhysicalImageFiles=FALSE |
| TapeInterface=1 (GEARAspi driver) |
| DoubleBuffering=TRUE |
| SCSIBusID=2 |
| TargetID=4 |
| TargetLUN=0 |
INITTAPE
Syntax:
INITTAPE Initializes the tape module and a tape unit (if present), and activates the GEAR tape commands.
| Examples: |
- INITTAPE
