BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use TFileStream with on running .exe files

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Hans Olav Stjernholm
Guest





PostPosted: Wed Jul 30, 2003 1:33 pm    Post subject: How to use TFileStream with on running .exe files Reply with quote



Hi!

I'm scanning through all my .EXE files to check the filesize, but all the
exe files that are running produces an exception (Access denied). I've tried
using fmOpenRead, but still with no luck.

Does anyone know how to get the file size of a running exe file?

'Hans Olav.



Back to top
Ian Kirk
Guest





PostPosted: Wed Jul 30, 2003 1:52 pm    Post subject: Re: How to use TFileStream with on running .exe files Reply with quote



"Hans Olav Stjernholm" <none (AT) no (DOT) no> wrote

Quote:
Hi!

I'm scanning through all my .EXE files to check the filesize, but all the
exe files that are running produces an exception (Access denied). I've
tried
using fmOpenRead, but still with no luck.

Does anyone know how to get the file size of a running exe file?

Does FindFirst work on a running EXE? If so the Size field of the
TSearchRec that populates should do the job.

HTH,
Ian

P.S. As Size is a 32-bit unsigned integer this assumes the EXE's < 4GB in
size - this may not be a safe assumption for the next version of MS Word...




Back to top
Hans Olav Stjernholm
Guest





PostPosted: Wed Jul 30, 2003 2:52 pm    Post subject: Re: How to use TFileStream with on running .exe files Reply with quote



Hehehe! Word sucks!

I'll try using the TSearchRec field!

"Ian Kirk" <ian (AT) kel (DOT) deletethisbit.co.uk> wrote

Quote:
"Hans Olav Stjernholm" <none (AT) no (DOT) no> wrote in message
news:3f27c807 (AT) newsgroups (DOT) borland.com...
Hi!

I'm scanning through all my .EXE files to check the filesize, but all
the
exe files that are running produces an exception (Access denied). I've
tried
using fmOpenRead, but still with no luck.

Does anyone know how to get the file size of a running exe file?

Does FindFirst work on a running EXE? If so the Size field of the
TSearchRec that populates should do the job.

HTH,
Ian

P.S. As Size is a 32-bit unsigned integer this assumes the EXE's < 4GB in
size - this may not be a safe assumption for the next version of MS
Word...






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.