http://expert.csdn.net/Expert/topic/1413/1413262.xml?temp=.146084

解决方案 »

  1.   

    可以
    是那一个叫WSH的东西吧
    <script>
    // +----------------------------------------------------+
    // | 本程序显示c盘的总空间和剩余空间
    // +----------------------------------------------------+
    ShowDriveInfo1("c:");
    function ShowDriveInfo1(drvPath)
    {
      var fso, drv, s ="";
      fso = new ActiveXObject("Scripting.FileSystemObject");
      drv = fso.GetDrive(fso.GetDriveName(drvPath));
      s += "Drive " + drvPath.toUpperCase()+ " - ";
      s += drv.VolumeName + "<br/>";
      s += "Total Space: " + drv.TotalSize / 1024;
      s += " Kb" + "<br/>"; 
      s += "Free Space: " + drv.FreeSpace / 1024;
      s += " Kb" + "<br/>";
      document.write(s);
    }
    </script>
      

  2.   

    我们公司用的时候,是自己用vb写了个控件。如果要的话,可以跟我联系。只是别人打开网页的话,需要允许运行activex控件。