| View previous topic :: View next topic |
| Author |
Message |
Hans Olav Stjernholm Guest
|
Posted: Wed Jul 30, 2003 1:33 pm Post subject: How to use TFileStream with on running .exe files |
|
|
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
|
Posted: Wed Jul 30, 2003 1:52 pm Post subject: Re: How to use TFileStream with on running .exe files |
|
|
"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
|
Posted: Wed Jul 30, 2003 2:52 pm Post subject: Re: How to use TFileStream with on running .exe files |
|
|
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 |
|
 |
|