Indigo Rose Software
  #1  
Old 10-03-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Grin Determining the Amount of Free Space on a Drive

AutoPlay Media Studio 5.0 Knowledge Base

Determining the Amount of Free Space on a Drive

Document ID: IR10072
The information in this article applies to:
  • AutoPlay Media Studio 5.0 Professional Edition

SUMMARY

This article describes how to determine if the user has a sufficient amount of free space on their system.

DISCUSSION

When installing software to a user's system, it is useful to ensure that the user's system has enough free space on their hard drive to accommodate the software.

To accomplish this in AutoPlay Media Studio 5.0, insert the following code into any event in your application:

--space required, in megabytes

space_required = 253



--get free space on the user's system (c:\ drive)

space_available = Drive.GetFreeSpace("C:");



--compare free space available to free space required

if space_required > space_available then

Dialog.Message("","You are "..(space_required - space_available).." MB short");

else

Dialog.Message("","You have "..(space_available - space_required).." MB more than you need");

end
Please note that the variable space_required must be set by you. 253 is an arbitrary number.

MORE INFORMATION

For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

  • Program Reference | Actions | Drive | Drive.GetFreeSpace

KEYWORDS: AutoPlay Media Studio 5.0, Drive, Free Space, Required


Last reviewed: October 3, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software