DriveMaster_Sample_Scripts2
DriveMaster_Sample_Scripts2
Please copy the content below and paste it in DriveMaster’s Script Window to run this sample script.
//There is a set of print commands for user to display the information in the log window.
//PRNS[R], PRNL[R], PRNSL[R], PRNSX[R], PRNF
PRNS "=================================================="
//"Script" displays the name of current script; "VER" displays the version number
//of current DriveMaster; "DEVNAME" displays the information of current tested
//device including model number, serial number and firmware revision; "DATE"/"TIME"
//displays current date and time
//"Echo On" or "Echo Off" is used to control the display of command issued to be
//echoed to the Log window. Default is "Echo On"
ECHO OFF
LOG2
//"UPD ON" or "UPD OFF" is used to control how frequent the screen display will be
//refreshed. When "Upd On", the screen will be refreshed by every second; When "Upd Off",
//the screen will be refreshed by each script line. Default is "UPD off"
//UPD ON
//"Wait" will let script wait for number of milliseconds before continuing //to execute
//next script line.
WAIT 2000
//Issue "Set Feature" command to set PIO mode 4
SETF 3,0ch,0 //set PIO MODE 4
//Get the Total Lba address of the current tested HDD and save the value to variable "V0"
//V0-V99, G0-G99, I-I10, J-J10, K-K10 are DWORD Global variables for general purpose.
//Also user can define the meaningful variables/arrays by "DIM"
V0 = totallba
PRNSL "total lba=",V0
G8=256 //G8 is set for sector count per write/read
//There is a set of buffer filling commands to let user fill buffer with different
//patterns: PAT, PATI, PATZ, PATD, PATR, PATV, and PATF
//Also there is a set of buffer management commands to let user control buffer easily.
//RPOINT, WPOINT, RR[W], RW[W], WRB[W], WWB[W], R[B]FILE, W[B]FILE,
SAVB(O)
//NEW, SETSIZE, FREE, COPY, CMPSET, CMP, APPEND, SWAP, MOD
CMP //compare READ and WRITE buffer
//"CmpSet" works with "Cmp" together to control the location/size of buffer comparison
//instead of comparing the whole buffers by default.
CMPSET 1,0,G7 //type, offset, size
CMP
ENDFOR
PRNS ""
PRNSR "Read End "; time