googie12 Newbie
Joined: 26 Jun 2004 Posts: 2
|
Posted: Sun Jun 27, 2004 4:59 am Post subject: Null Character or Padding |
|
|
I am tring to find a character that is not in this exe file im trying to copy using vdsug.dll. Every character imaginable is in this exe and therefore I keep getting corrupted file at the end of copying. Is ther any way to get around this? I cant use file copy because it is not workable with what I am working on. My code is as follows:
| Code: |
UG FILEOPEN,1,c:\mtu.exe,READ
UG FILEOPEN,2,c:\mtq.exe,WRITE
%W = @ug(FILESETPOS,1,0)
%T = @ug(FILEGETSIZE,1)
%X = @ug(FILESETPOS,2,0)
:START
%R = @ug(FILEREAD,1,RAWDATA,%W,@CHR(237))
UG FILEWRITE,2,RAWDATA,%R,@CHR(237))
%K = @SUM(4024,%W)
%W = @ug(FILESETPOS,1,%K)
%X = @ug(FILESETPOS,2,%K)
if @GREATER(%K,%T)
exit
else
goto start
end
|
Thank you all for your help!
Last edited by googie12 on Mon Jun 28, 2004 12:40 am; edited 1 time in total |
|