SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Size Limit with DiskGetFreeSpaceEx??

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Size Limit with DiskGetFreeSpaceEx??
Author Message
Tom Smit



Joined: 26 Jan 2000
Posts: 21

Post Size Limit with DiskGetFreeSpaceEx?? Reply with quote

I have very large disks (over 20 gig) and it's returning invalid data when i run diskgetfreespaceex???

Fri Feb 11, 2000 4:07 pm View user's profile Send private message
Tom Smit



Joined: 26 Jan 2000
Posts: 21

Post Re: Size Limit with DiskGetFreeSpaceEx?? Reply with quote

Specifically, I have this script:

Dim drive, string
dim free_space,number
dim low_space, boolean
dim process, number
dim bytes, number

Set (drive, "O")
Runandwait ("d:\spacecheck\op13e5.bat", "", 0, process)
DiskGetFreeSpaceEx (drive, bytes)
Divide( bytes, 1048576, free_space)
isLess(free_space, 1024, low_space)
....

And free_space ends up being 74.8 when explorer shows 24.8 gig free.

Fri Feb 11, 2000 4:17 pm View user's profile Send private message
Tom Smit



Joined: 26 Jan 2000
Posts: 21

Post Re: Size Limit with DiskGetFreeSpaceEx?? Reply with quote

Also, more information, if i just run the DiskGetFreeSpace, they both return the same value. Looks like a bug to me. Maybe something that works in v2.0?

Fri Feb 11, 2000 4:27 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Re: Size Limit with DiskGetFreeSpaceEx?? Reply with quote

DiskGetFreeSpaceEx should work. The biggest drive I have here at this moment has 3.9Gig free space and DiskGetFreeSpaceEx gives the correct number. I will get back to you as soon as I find and try a larger drive.

: I have very large disks (over 20 gig) and it's returning invalid data when i
: run diskgetfreespaceex???

Fri Feb 11, 2000 6:27 pm View user's profile Send private message
Tom Smit



Joined: 26 Jan 2000
Posts: 21

Post Re: Size Limit with DiskGetFreeSpaceEx?? Reply with quote

Any update on this? Possible workarounds?

Mon Feb 14, 2000 10:51 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Re: Size Limit with DiskGetFreeSpaceEx?? Reply with quote

Waiting for v2.0 (tomorrow)

Here is the workaround for now:
Run("cmd /c dir /-c > dir.txt", "", process)
FileReadAll( "dir.txt", buffer)

// extract number of free bytes
GetToken( " bytes", buffer, dummy )
GetToken( "\n", buffer, dummy )
Trim( buffer, buffer )
GetToken( " bytes free", buffer, free_space )

: Any update on this? Possible workarounds?

Mon Feb 14, 2000 12:29 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
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, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.