GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
and the other for write, this command allows copying data from a file to another even if
they were opened in different storage media devices.
Format RW<SP>r<SP>w>ssssssss<CR>
!00<CR>
$aaaaaaaa<CR>
!00<CR>
r Read-Mode File Handle
w Write-Mode File Handle
ssssssss HEX DWORD data size to
be read and written
aaaaaaaa HEX DWORD actual
written size
Example Suppose that a file is opened for read and represented with handle 0
and another file is opened for write and represented with handle 1.
RW<SP>0<SP>1>100<CR>
!00<CR>
$aaaaaaaa<CR>
!00<CR>
Read 256 bytes from file 0 and write
them into file 1
SF - Split file
SF splits a file into 2 new files. The files can be opened on different drives or the same
drive. It requires one file to be open for read and 2 other files to be open for write.
Files handles will be automatically closed after successful execution of the command.
Format SF<SP>n>m+o@ssssssss<CR>
!00<CR>
$aaaaaaa1<CR>
!00<CR>
$aaaaaaa2<CR>
!00<CR>
n Source Read-Mode File Handle
m First part destination Write-Mode
File Handle
o Second part destination Write-
Mode File Handle
ssssssss HEX DWORD desirable
split position in the source file
aaaaaaa1 HEX DWORD actual
written data size to the first part file
aaaaaaa2 HEX DWORD actual
written data size to the second part
file
Example Suppose that the source file is represented by file handle 1 with size
32 Bytes. And we want to split it at the position 16 and save the
parts into files represented in file handles 0 and 2 which are opened
in write-mode.
SF<SP>1>0+2@10<CR>
!00<CR>
$00000010<CR>
!00<CR>
$00000010<CR>
!00<CR>
Split file 1 at position 16 into two files
0 and 2
Rev.2.27 Page 45 of 64 www.ghielectronics.com
Commentaires sur ces manuels