ÁöÁ¤ÇÑ ÆÄÀÏÀ̳ª Æú´õ°¡ ¸¸µé¾îÁø ³¯Â¥¿Í ½Ã°£À» ¹ÝȯÇÑ´Ù.
objec´Â Ç×»ó File ¶Ç´Â Folder °³Ã¼ÀÌ´Ù.
¼Ó¼º°ªÀº ÆÄÀÏÀ̳ª Æú´õÀ» »ý¼ºÇÑ ³¯ÀÚ¿Í ½Ã°£À» ³ªÅ¸³»´Â ¹®ÀÚ¿ÀÌ´Ù.
ÁöÁ¤ÇÑ ÆÄÀÏÀ̳ª Æú´õ°¡ ¸¸µé¾îÁø ³¯Â¥¿Í ½Ã°£À» ¹ÝȯÇÑ´Ù. ÀбâÀü¿ëÀÌ´Ù.
ÀÛ¼ºÀÏÀÚ, ½Ã°£Àº Áö¿øÇÏ´Â ¿î¿µÃ¼°è¿¡µû¶ó ´Ù¸£³ª ÀϹÝÀûÀ¸·Î datetime.getVarDate() ȤÀº datetime.toLocaleString()¿¡ ÇØ´çÇÏ´Â °ªÀ¸·Î Ç¥½ÃµÈ´Ù.
Âü°í ÀÌ ¸Þ¼µå´Â »ç¿ëÇÏ´Â ¿î¿µ üÁ¦¿¡ µû¶ó µ¿ÀÛÀÌ ´Þ¶óÁø´Ù. ¿î¿µ üÁ¦¿¡¼ ½Ã°£ Á¤º¸ Á¦°ø ±â´ÉÀ» Áö¿øÇÏÁö ¾ÊÀ¸¸é ¾Æ¹«·± °ªµµ ¹ÝȯµÇÁö ¾Ê´Â´Ù.
<SCRIPT language=JScript> function DateCreatedTest(filePath){ var fso,fileObj,str=''; fso=new ActiveXObject('Scripting.FileSystemObject'); fileObj=fso.GetFile(filePath); str+='¸¸µç ³¯Â¥: '+fileObj.DateLastAccessed+'<BR>'; str+='¸¶Áö¸·À¸·Î ¾×¼¼½ºÇÑ ³¯Â¥: '+fileObj.DateLastAccessed+'<BR>'; str+='¸¶Áö¸·À¸·Î ¼öÁ¤ÇÑ ³¯Â¥: '+fileObj.DateLastModified; return(str); } </SCRIPT> <DIV id=showjs class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="id=showjs.innerHTML=DateCreatedTest('C:\JsTest\expSample.txt')"> <SPAN class=ie>JScript</SPAN> <SPAN class=property>DateCreated</SPAN> ¿¹Á¦</DIV>
<SCRIPT language=VBScript> Function DateCreatedTestvb(filePath) Dim fso,fileObj Set fso=CreateObject("Scripting.FileSystemObject") Set fileObj=fso.GetFile(filePath) str="¸¸µç ³¯Â¥: "&fileObj.DateCreated&"<BR>" str=str&"¸¶Áö¸·À¸·Î ¾×¼¼½ºÇÑ ³¯Â¥: "&fileObj.DateLastAccessed&"<BR>" str=str&"¸¶Áö¸·À¸·Î ¼öÁ¤ÇÑ ³¯Â¥: "&fileObj.DateLastModified DateCreatedTestvb=str End Function </SCRIPT> <DIV id=showvb class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="showvb.innerHTML=DateCreatedTestvb('C:\JsTest\expSample.txt')"> <SPAN class=ie>VBScript</SPAN> <SPAN class=property>DateCreated</SPAN> ¿¹Á¦</DIV>