ÆÄÀÏÀ̳ª Æú´õÀÇ Æ¯¼ºÀ» ¼³Á¤Çϰųª ¹ÝȯÇÑ´Ù.
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, Ç×»ó FileÀ̳ª Folder °³Ã¼ÀÇ À̸§ÀÌ´Ù.
¼±ÅÃÀûÀÎ ¿ä¼ÒÀ̸ç, »ç¿ëÇϸé Val´Â ÁöÁ¤ÇÑ objectÀÇ Æ¯¼º¿¡ ÇØ´çÇÏ´Â »õ °ªÀÌ´Ù.
¼³Á¤°ª¿¡ µû¶ó Ư¼ºÀÌ ´Ù¸£¸ç Àбâ/¾²±â°¡ °¡´ÉÇϰųª ȤÀº ÀбâÀü¿ëÀÌ´Ù.
sVal Àμö´Â ¾Æ·¡ °ªÀ̳ª ¾Æ·¡ °ªÀÇ ³í¸® Á¶ÇÕÀ» °¡Áú ¼ö ÀÖ´Ù.
»ó¼ö | °ª | ¼³¸í | Ư¼º |
---|---|---|---|
Normal | 0 | ÀÏ¹Ý ÆÄÀÏ | ¼³Á¤µÈ Ư¼ºÀÌ ¾ø´Ù. |
ReadOnly | 1 | ÀбâÀü¿ë ÆÄÀÏ | Àбâ/¾²±â°¡ °¡´ÉÇÏ´Ù. |
Hidden | 2 | ¼û°ÜÁø ÆÄÀÏ | Àбâ/¾²±â°¡ °¡´ÉÇÏ´Ù. |
System | 4 | ½Ã½ºÅÛ ÆÄÀÏ | Àбâ/¾²±â°¡ °¡´ÉÇÏ´Ù. |
Volume | 8 | µð½ºÅ© µå¶óÀÌºê º¼·ý ·¹À̺í | ÀбâÀü¿ëÀÌ´Ù. |
Directory | 16 | Æú´õ ¶Ç´Â µð·ºÅ͸® | ÀбâÀü¿ëÀÌ´Ù. |
Archive | 32 | ¸¶Áö¸·À¸·Î ¹é¾÷ÇÑ ÈÄ ÆÄÀÏÀÌ º¯°æµÇ¾ú´Ù. | Àбâ/¾²±â°¡ °¡´ÉÇÏ´Ù. |
Alias | 64 | ¿¬°á ¶Ç´Â ¹Ù·Î °¡±â | ÀбâÀü¿ëÀÌ´Ù. |
Compressed | 128 | ¾ÐÃà ÆÄÀÏ | ÀбâÀü¿ëÀÌ´Ù. |
<SCRIPT language=JScript> function AttributesTest(filePath){ var fso,fileObj,str; fso=new ActiveXObject('Scripting.FileSystemObject'); fileObj=fso.GetFile(filePath) str='fileObj.Attributes='+fileObj.attributes+'<BR>'; if (fileObj.attributes&&32){ fileObj.attributes=fileObj.attributes-32; str+='Archive ºñÆ®¸¦ Áö¿ü´Ù.'; } else { fileObj.attributes=fileObj.attributes+32; str+='Archive ºñÆ®¸¦ ¼³Á¤Çß´Ù.'; } return(str); } </SCRIPT> <DIV id=showjs class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="showjs.innerHTML=AttributesTest('C:\\JsTest\\expSample.txt')"> <SPAN class=ie>JScript</SPAN> <SPAN class=property>Attributes</SPAN> ¿¹Á¦</DIV>
<SCRIPT language=VBScript> Function AttributesTestvb(filePath) Dim fso,fileObj Set fso=CreateObject("Scripting.FileSystemObject") Set fileObj=fso.GetFile(filePath) str="fileObj.Attributes="&fileObj.attributes&"<BR>" if fileObj.attributes and 32 Then fileObj.attributes=fileObj.attributes-32 str=str&"Archive ºñÆ®¸¦ Áö¿ü´Ù." Else fileObj.attributes=fileObj.attributes+32 str=str&"Archive ºñÆ®¸¦ ¼³Á¤Çß´Ù." End If AttributesTestvb=str End Function </SCRIPT> <DIV id=showvb class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="showvb.innerHTML=AttributesTestvb('C:\\JsTest\\expSample.txt')"> <SPAN class=ie>VBScript</SPAN> <SPAN class=property>Attributes</SPAN> ¿¹Á¦</DIV>