Scripting Runtime Library(FileSystemObject)
±âÁ¸ °æ·Î¿¡ À̸§À» Ãß°¡ÇÑ´Ù.
ÇÊ¿äÇÒ °æ¿ì BuildPath ¸Þ¼µå´Â ±âÁ¸ °æ·Î¿Í À̸§ »çÀÌ¿¡ °æ·Î ±¸ºÐ ±âÈ£¸¦ Ãß°¡ÇÑ´Ù.
<SCRIPT language=JScript> function BuildPathTest(folderPath,newPath){ var fso,newpath; fso=new ActiveXObject('Scripting.FileSystemObject'); newObj=fso.BuildPath(folderPath,newPath); return('¼³Á¤ °æ·Î="'+newObj+'"'); } </SCRIPT> <DIV id=showjs class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="showjs.innerHTML=BuildPathTest('C:\\JsTest\\','newFolder')"> <SPAN class=ie>JScript</SPAN> <SPAN class=method>BuildPath</SPAN> ¸Þ¼µå ¿¹Á¦</DIV>
<SCRIPT language=VBScript> Function BuildPathTestvb(folderPath,newPath) Dim fso Set fso=CreateObject("Scripting.FileSystemObject") newObj=fso.BuildPath(folderPath,newPath) BuildPathTestvb="¼³Á¤ °æ·Î='"&newObj&"'" End Function </SCRIPT> <DIV id=showvb class=show alt="°á°ú">°á°ú Ç¥½Ãâ</DIV> <DIV class=show onClick="showvb.innerHTML=BuildPathTestvb('C:\\JsTest\\','newFolder')"> <SPAN class=ie>VBScript</SPAN> <SPAN class=method>BuildPath</SPAN> ¸Þ¼µå ¿¹Á¦</DIV>