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 


Need help with @file() function

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


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Tue Mar 11, 2003 10:44 am    Post subject: Need help with @file() function Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Tue Mar 11, 2003 10:47 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Mar 11, 2003 10:52 am    Post subject: Reply with quote

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
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Tue Mar 11, 2003 11:03 am    Post subject: Reply with quote

Laughing Embarassed
Darn, you're right Dr.D
thanks Very Happy

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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