Page 1 of 1 1
Topic Options
#203868 - 2011-11-29 03:57 AM Using results from getfilesize
thunderchero Offline
Fresh Scripter

Registered: 2007-09-08
Posts: 14
Loc: USA
Hi Everyone,

I should be able to do this one but every time it fails...

what I am tring to do is use getfilesize then if file size is not 224 bytes to delete the file.

thunderchero

Top
#203869 - 2011-11-29 04:03 AM Re: Using results from getfilesize [Re: thunderchero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
can we get some example code of what you are actually trying to do?
_________________________
!

download KiXnet

Top
#203870 - 2011-11-29 04:12 AM Re: Using results from getfilesize [Re: Lonkero]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Try using FSO.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#203871 - 2011-11-29 04:12 AM Re: Using results from getfilesize [Re: Lonkero]
thunderchero Offline
Fresh Scripter

Registered: 2007-09-08
Posts: 14
Loc: USA
sorry,

 Code:
IF EXIST ($modfolder+"\blkhmap.tga")
  $Result = GetFileSize ($modfolder+"\blkhmap.tga")
     IF NOT $Results = 224
     DEL $modfolder+"\blkhmap.tga"
     ENDIF
ENDIF



Edited by Mart (2011-11-29 02:09 PM)
Edit Reason: Please use code tags when posting code.

Top
#203872 - 2011-11-29 04:14 AM Re: Using results from getfilesize [Re: thunderchero]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You return $result (singular) but then test $results (plural)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#203873 - 2011-11-29 04:35 AM Re: Using results from getfilesize [Re: Les]
thunderchero Offline
Fresh Scripter

Registered: 2007-09-08
Posts: 14
Loc: USA
Thank you, I should have caught that.

It works as I intended now.

thunderchero

Top
#203874 - 2011-11-29 04:36 AM Re: Using results from getfilesize [Re: thunderchero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
fast. nice.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 235 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.063 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org