forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Null Character or Padding

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
googie12
Newbie


Joined: 26 Jun 2004
Posts: 2

PostPosted: Sun Jun 27, 2004 4:59 am    Post subject: Null Character or Padding Reply with quote

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
Back to top
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sun Jun 27, 2004 12:25 pm    Post subject: Reply with quote

Which exe do you mean? Rolling Eyes
And I can't imagine why you would use vdsug.dll to copy a file... why don't you use the file copy command to achieve this?

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group