| View previous topic :: View next topic |
| Author |
Message |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Tue Mar 11, 2003 10:44 am Post subject: Need help with @file() function |
|
|
I'm trying to get the filesize of a file by using the @file() function but all I get back is the filepath.
| Code: | | INFO Testing:@cr()@file(@windir()\explorer.exe),Z) |
That's the code I tried.
Any ideas guys? _________________
 |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Tue Mar 11, 2003 10:47 am Post subject: |
|
|
Never mind. I figured it out.
| Code: | %F = @windir()\explorer.exe
%T = @div(@file(%F,Z),1024)
INFO Testing:@cr()%T kb |
That worked instead, but I have no clue to why... _________________
 |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue Mar 11, 2003 10:52 am Post subject: |
|
|
| GeoTrail wrote: | | That worked instead, but I have no clue to why... |
Here's a clue: You had an extra closing parenthesis - should've been:
| Code: | | INFO Testing:@cr()@file(@windir()\explorer.exe,Z) |
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Tue Mar 11, 2003 11:03 am Post subject: |
|
|
Darn, you're right Dr.D
thanks  _________________
 |
|
| Back to top |
|
 |
|