ÁöÁ¤ÇÑ ÆÄÀÏÀ̳ª Æú´õ°¡ ÀÖ´Â µå¶óÀ̺êÀÇ µå¶óÀÌºê ¹®ÀÚ¸¦ ¹ÝȯÇÑ´Ù.
object´Â Ç×»ó File ¶Ç´Â Folder °³Ã¼ÀÌ´Ù.
¼Ó¼º°ªÀº ÁöÁ¤ÇÑ ÆÄÀÏÀ̳ª Æú´õ°¡ ÀÖ´Â µå¶óÀ̺êÀÇ µå¶óÀÌºê ¹®ÀÚ¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿ÀÌ´Ù.
ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
<SCRIPT language=JScript> function DriveTest(filePath){ var fso,fileObj,str; fso=new ActiveXObject('Scripting.FileSystemObject'); fileObj=fso.GetFile(filePath); driveObj=fso.GetDrive(fileObj.Drive); str='"'+fileObj.Name+'"Àº Drive "'+fileObj.Drive+'"¿¡ ÀÖ´Ù.<BR>'; str+='File °æ·Î: '+fileObj.Path+'<BR>'; str+='File ¸¸µç ³¯Â¥: '+fileObj.DateCreated+'<BR>'; str+='µå¶óÀÌºê ¿©À¯°ø°£: '+driveObj.AvailableSpace+' byte'; return(str); } </SCRIPT> <DIV id=showjs class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="id=showjs.innerHTML=DriveTest('C:\\JsTest\\expSample.txt')"> <SPAN class=ie>JScript</SPAN> <SPAN class=property>Drive</SPAN> ¿¹Á¦</DIV>
<SCRIPT language=VBScript> Function DriveTestvb(filePath) Dim fso,fileObj,str Set fso=CreateObject("Scripting.FileSystemObject") Set fileObj=fso.GetFile(filePath) Set driveObj=fso.GetDrive(fileObj.Drive) str="'"&fileObj.Name&"'Àº Drive '"&fileObj.Drive&"'¿¡ ÀÖ´Ù.<BR>" str=str&"File °æ·Î: "&fileObj.Path&"<BR>" str=str&"File ¸¸µç ³¯Â¥: "&fileObj.DateCreated&"<BR>" str=str&"µå¶óÀÌºê ¿©À¯°ø°£:"&driveObj.AvailableSpace&" byte" DriveTestvb=str End Function </SCRIPT> <DIV id=showvb class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="showvb.innerHTML=DriveTestvb('C:\\JsTest\\expSample.txt')"> <SPAN class=ie>VBScript</SPAN> <SPAN class=property>Drive</SPAN> ¿¹Á¦</DIV>