Scripting Runtime Library(FileSystemObject)

±âÁ¸ °æ·Î¿¡ À̸§À» Ãß°¡ÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
fso
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç,Ç×»ó FileSystemObjectÀÇ À̸§ÀÌ´Ù.
folderPath
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, nameÀÌ Ãß°¡µÇ´Â ±âÁ¸ °æ·ÎÀÌ´Ù.
°æ·Î´Â Àý´ë °æ·Î³ª »ó´ë °æ·Î ¸ðµÎ µÉ ¼ö ÀÖÀ¸¸ç ±âÁ¸ Æú´õ¸¦ ÁöÁ¤ÇÒ ÇÊ¿äµµ ¾ø´Ù.
name
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ±âÁ¸ folderPath¿¡ Ãß°¡ÇÒ À̸§ÀÌ´Ù.
¼³¸í

ÇÊ¿äÇÒ °æ¿ì BuildPath ¸Þ¼­µå´Â ±âÁ¸ °æ·Î¿Í À̸§ »çÀÌ¿¡ °æ·Î ±¸ºÐ ±âÈ£¸¦ Ãß°¡ÇÑ´Ù.


°á°ú Ç¥½Ãâ
JScript 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>
°á°ú Ç¥½Ãâ
VBScript BuildPath ¸Þ¼­µå ¿¹Á¦
<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>