-----056-FileSystemObject.html-----

 <!DOCTYPE html>
 <html>
 <head>
     <meta http-equiv="content-type" content="text/html; charset=utf-8">
     <title>标题</title>
 </head>
 <body>
 <script type="text/javascript">
     fso = new ActiveXObject("Scripting.FileSystemObject");
     document.write("<ol><li>" + fso.getDrive(fso.getDriveName("c://///")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("d:")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("e:/")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("f:\\jjj000")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("r:\\\\\\\\")).Path + "</ol><br/>");
     s = "<ol>";
     for(drive=new Enumerator(new ActiveXObject("Scripting.FileSystemObject").Drives); !drive.atEnd(); drive.moveNext())
     {
         s += "<li>驱动器号:" + drive.item().DriveLetter + "<br/>";
         s += "驱动器卷标:" + drive.item().VolumeName + "<br/>";
         s += "驱动器类型:" + drive.item().DriveType + "<br/>";
         s += "驱动器文件系统:" + drive.item().FileSystem + "<br/>";
         s += "驱动器就绪状态:" + drive.item().IsReady + "<br/>";
         s += "驱动器路径:" + drive.item().Path + "<br/>";
         s += "驱动器根文件夹:" + drive.item().RootFolder + "<br/>";
         s += "驱动器序列号:" + drive.item().SerialNumber + "<br/>";
         s += "驱动器共享名:" + drive.item().ShareName + "<br/>";
         s +=  + " GB<br/>";
         s +=  + " GB<br/>";
         s +=  + " GB<br/><br/>";
     }
     document.write(s);
     function sp(n)
     {
         var s = "";
         ; i<n; i++)
         {
             s += "&nbsp;";
         }
         return s;
     }
 </script>
 </body>
 </html>
 <!DOCTYPE html>
 <html>
 <head>
     <meta http-equiv="content-type" content="text/html; charset=utf-8">
     <title>标题</title>
 </head>
 <body>
 <script type="text/javascript">
     fso = new ActiveXObject("Scripting.FileSystemObject");
     document.write("<ol><li>" + fso.getDrive(fso.getDriveName("c://///")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("d:")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("e:/")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("f:\\jjj000")).Path);
     document.write("<li>" + fso.getDrive(fso.getDriveName("r:\\\\\\\\")).Path + "</ol><br/>");
     s = "<ol>";
     for(drive=new Enumerator(new ActiveXObject("Scripting.FileSystemObject").Drives); !drive.atEnd(); drive.moveNext())
     {
         s += "<li>驱动器号:" + drive.item().DriveLetter + "<br/>";
         s += "驱动器卷标:" + drive.item().VolumeName + "<br/>";
         s += "驱动器类型:" + drive.item().DriveType + "<br/>";
         s += "驱动器文件系统:" + drive.item().FileSystem + "<br/>";
         s += "驱动器就绪状态:" + drive.item().IsReady + "<br/>";
         s += "驱动器路径:" + drive.item().Path + "<br/>";
         s += "驱动器根文件夹:" + drive.item().RootFolder + "<br/>";
         s += "驱动器序列号:" + drive.item().SerialNumber + "<br/>";
         s += "驱动器共享名:" + drive.item().ShareName + "<br/>";
         s +=  + " GB<br/>";
         s +=  + " GB<br/>";
         s +=  + " GB<br/><br/>";
     }
     document.write(s);
     function sp(n)
     {
         var s = "";
         ; i<n; i++)
         {
             s += "&nbsp;";
         }
         return s;
     }
 </script>
 </body>
 </html>

JavaScript -- FileSystemObject-LMLPHP

05-02 18:19