English Deutsch Français Italiano Particle Software Buy Now


Particle Software
 
Drive Space Stats
   ..::   About  •  Purchasing  •  Search  •  Contact  • Home   ::..
 
Screenshots
• Sample
Downloads
Resources
• FAQ
• Macros

 
   Below shows how IntraLaunch can be used to get the free and total space of a given drive. The value returned is in bytes, to format it use javascript " Math.round(lDriveSpace / 1024) + ' KB' ".

  You could also use DHTML and dynamically update space free values on a web page when the page loads. See the file manager demo for an example. IntraLaunch 5.0 or higher required.

  • GetDriveTotalSpace()
  • GetDriveFreeSpace()



 
 
<HTML>

<SCRIPT LANGUAGE="JavaScript">
   function GetTotalSpace()
   {
       var lDriveSpace;
       lDriveSpace = IntraLaunch.GetDriveTotalSpace("C:");
       alert ('Total Space: ' + lDriveSpace + ' Bytes');
   }

   function GetFreeSpace()
   {
       var lDriveSpace;
       lDriveSpace = IntraLaunch.GetDriveFreeSpace("C:");
       alert ('Free Space: ' + lDriveSpace + ' Bytes');
   }
</SCRIPT>

<BODY>

<a href="Javascript:GetTotalSpace();">Test Total Space</a>
<a href="Javascript:GetFreeSpace();">Test Free Space</a>

</BODY>

<OBJECT ID="IntraLaunch" STYLE="display : none" WIDTH=1 HEIGHT=1    CODEBASE="http://intranet.net/menu/IntraLaunch.CAB#version=5,0,0,0"
   CLASSID="CLSID:0AE533FE-B805-4FD6-8AE1-A619FBEE7A23">
   <PARAM NAME="ImageLoc" VALUE="Null">
   <PARAM NAME="ImageSrc" VALUE="Null">
   <PARAM NAME="Run" VALUE="Null">
   <PARAM NAME="RunParms" VALUE="">
</OBJECT>

</HTML>
 
 
       



Copyright © 1997-2008 Particle Software - All Rights Reserved
Web services provided by Extreme Hosting