GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
PF - Seek File
This command changes the file pointer position. File must be opened in read mode.
Format PF<SP>n>ssssssss<CR>
!00<CR>
n File Handle
ssssssss HEX DWORD new position
Example PF<SP>1>10<CR>
!00<CR>
Set file pointer at the 16th byte in file
FP - Get Current File Pointer Position
This command gets the current sector address and the position in that sector of file
pointer. File must be opened in read mode.
Format FP<SP>n<CR>
!00<CR>
$ssssssss<SP>$pppp<CR>
!00<CR>
n File Handle
ssssssss HEX DWORD Sector address
pppp HEX WROD position in Sector
ZF - Resize File
This command sets file size to a certain position less than its size and omits the data
after that position.
File must be opened in read mode.
File handle will be automatically closed after successfully executing this command.
Format ZF<SP>n>ssssssss<CR>
!00<CR>
n File Handle
ssssssss HEX DWORD split size
Example ZF<SP>1>10<CR>
!00<CR>
Resize the file to 16 bytes
DF - Delete File
Format DF<SP>filename<CR>
!00<CR>
Example DF<SP>TEST.TXT<CR>
!00<CR>
IF - Find File or Folder
This command searches for a specific file or folder name in the current folder and prints
out the file information which includes size, attributes and date & time of modification.
Format IF<SP>filename<CR>
!00<CR>
$ssssssss<SP>$AA<SP>$ddddtttt<CR>
!00<CR>
ssssssss HEX DWORD File
Size
AA HEX Byte File
attributes*
ddddtttt HEX DWORD time
and date structure**
Rev.2.27 Page 46 of 64 www.ghielectronics.com
Commenti su questo manuale