Startseite

software

dcd

fid

IsTapeInserted

TapeStatus

Backup-Suite
Wappen

Tapestatus v1.0 for WinNT 4.0

  Vote for it at SuperShareware.com
error code | usage | license | download
  

This little command line tool is very powerfull combined with scripts. It returns the current state of the tapedrive as an error code. This makes it possible to react on almost everything, which can happen during a backup, inside your script.

error code

These codes are special tape-drive errors which are raised by the os.

Error code   Description
NO_ERROR   The operation completed successfully.
ERROR_BEGINNING_OF_MEDIA   An attempt to access data before the beginning-of-medium marker failed.
ERROR_BUS_RESET   A reset condition was detected on the bus.
ERROR_END_OF_MEDIA   The end-of-tape marker was reached during an operation.
ERROR_FILEMARK_DETECTED   A filemark was reached during an operation.
ERROR_SETMARK_DETECTED   A setmark was reached during an operation.
ERROR_NO_DATA_DETECTED   The end-of-data marker was reached during an operation.
ERROR_PARTITION_FAILURE   The tape could not be partitioned.
ERROR_INVALID_BLOCK_LENGTH   The block size is incorrect on a new tape in a multivolume partition.
ERROR_MEDIA_CHANGED   The tape that was in the drive has been replaced or removed.
ERROR_NO_MEDIA_IN_DRIVE   There is no media in the drive.
ERROR_NOT_SUPPORTED   The tape driver does not support a requested function.
ERROR_UNABLE_TO_UNLOAD_MEDIA   An attempt to unload the tape failed.
ERROR_WRITE_PROTECT   The media is write protected.

For more information about the IO Results from Delphi please visit http://www.efg2.com/lab/Library/Delphi/IO/IOResult.htm.

usage

TapeStatus v1.0: WinNT console utility to check the Status of a Tapedrive.
(c) Tobias Deutsch - 15.Jan.2001

syntax:
TapeStatus.exe /?
TapeStatus.exe
TapeStatus.exe /n

/?: display this help.

/n : set the number of the tapedrive. : 0-9

If started without parameter, the default drivenumber is 0

/s Silent-mode. The Exitcode is the only output.

I have implemented (but not tested) that you can use this utility with a server which has more than one tapedrive.

license

You are allowed to use this software free of any charges (but please send me an e-mail for every tape-drive you use it). This software is delivered AS IS. The author cannot be held responsible for any damages caused by using this software.

This program is a not supported software. Correspondence about problems with the usage to the authors may never be answered (but i dont think that i won't answer your mails :).

The software i used to develop this program was Delphi 5. If you have Delphi 5 and you are interrested, you can have a look to the source-code (you are even allowed to alter it, but please let me know what you did and why).

download

TapeStatus v1.0 executeable only. 16.Jan.2001
TapeStatus v1.0 sourcecode only. 16.Jan.2001