Exemple #1
0
        public void WriteTapeDriveInfo()
        {
            TapeOperator objTapeOperator;
            TapeOperator.DriveInfo objDriveInfo;

            Console.WriteLine("Initializing the tape drive...");
            objTapeOperator = new TapeOperator();
            objTapeOperator.Load(TapeName);

            objDriveInfo = objTapeOperator.GetTapeDriveParameters();

            Console.WriteLine("These Properties can be set...");
            Console.WriteLine("Compression is (1=True & 0=False): " + objDriveInfo.Compression);
            Console.WriteLine("DataPadding is: " + objDriveInfo.DataPadding);
            Console.WriteLine("ECC is: " + objDriveInfo.ECC);
            Console.WriteLine("EOTWarningZoneSite is: " + objDriveInfo.EOTWarningZoneSize);
            Console.WriteLine("ReportSetMarks is: " + objDriveInfo.ReportSetMarks);
            Console.WriteLine();
            Console.WriteLine("These Properties can not...");
            Console.WriteLine("Default Block Size is: " + objDriveInfo.DefaultBlockSize);
            Console.WriteLine("Maximum Block Size is: " + objDriveInfo.MaximumBlockSize);
            Console.WriteLine("Minimum Block Size is: " + objDriveInfo.MinimumBlockSize);

            objTapeOperator.Close();
        }
Exemple #2
0
        public TapeOperator.DriveInfo GetTapeDriveInfo()
        {
            TapeOperator objTapeOperator;
            TapeOperator.DriveInfo objDriveInfo;

            Console.WriteLine("Initializing the tape drive...");
            objTapeOperator = new TapeOperator();
            objTapeOperator.Load(TapeName);
            objDriveInfo = objTapeOperator.GetTapeDriveParameters();
            objTapeOperator.Close();

            return objDriveInfo;
        }