<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>GETDIRECTORYFROMPATH</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">GETDIRECTORYFROMPATH</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title"></span>
<p>
΃pXfBNg𒊏o܂B 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">߂l</span>
<p>
t@C΃pXBŌ̓̕XbV܂͉~Lł (Iy[eBOVXeɂĈقȂ܂)B
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">JeS</span>
<p>
VXe֐
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">֐̃V^bNX</span><pre>GetDirectoryFromPath(path)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">֘A</span>
<p>
ExpandPathAGetFileFromPath
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">p[^</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title"></span><pre>&lt;h3&gt;GetDirectoryFromPath ̗&lt;/h3&gt;
&lt;cfset thisPath  =  ExpandPath(&quot;*.*&quot;)&gt;
&lt;cfset thisDirectory = GetDirectoryFromPath(thisPath)&gt;
&lt;cfoutput&gt;
݂̃fBNg : #GetDirectoryFromPath(thisPath)#
&lt;cfif IsDefined(&quot;FORM.yourFile&quot;)&gt;
   &lt;cfif FORM.yourFile is not &quot;&quot;&gt;
      &lt;cfset yourFile = FORM.yourFile&gt;
         &lt;cfif FileExists(ExpandPath(yourfile))&gt;
         &lt;p&gt;t@C͂̃fBNgɑ݂܂Bt@CA#GetFileFromPath(&quot;#thisPath#/
#yourfile#&quot;)# 
   ͂܂B
   &lt;cfelse&gt;
      &lt;p&gt;t@C͂̃fBNgŌ܂łB
      &lt;br&gt;́ÃfBNg̑̃t@C̃XgłB
      &lt;!--- cfdirectory gpāAfBNg𖼑OуTCY̏ɕ\ ---&gt;
      &lt;cfdirectory directory = &quot;#thisDirectory#&quot;
         name = &quot;myDirectory&quot; SORT = &quot;name ASC, size DESC&quot;&gt;
      &lt;!--- cfdirectory ̓e CFTABLE Ƃďo ---&gt;
      &lt;cftable query = &quot;myDirectory&quot;&gt;
         &lt;cfcol header = &quot;NAME:&quot;text = &quot;#Name#&quot;&gt;
      &lt;cfcol header = &quot;SIZE:&quot;text = &quot;#Size#&quot;&gt;
      &lt;/cftable&gt;
      &lt;/cfif&gt;
   &lt;/cfif&gt;
&lt;cfelse&gt;
   &lt;H3&gt;t@C͂ĂB&lt;/H3&gt;
   &lt;/cfif&gt;
   &lt;/cfoutput&gt;
   &lt;form action=&quot;getdirectoryfrompath.cfm&quot; METHOD=&quot;post&quot;&gt;
      &lt;H3&gt;̃fBNg̃t@C̖O͂ĂB&lt;I&gt;&lt;FONT SIZE=&quot;-1&quot;&gt;
(try expandpath.cfm)&lt;/FONT&gt;&lt;/I&gt;&lt;/H3&gt;
      &lt;input type=&quot;Text&quot; NAME=&quot;yourFile&quot;&gt;
      &lt;input type=&quot;Submit&quot; NAME=&quot;&quot;&gt;
   &lt;/form&gt; ---&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="PATH">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">PATH</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

 </td>
  </tr>
  <tr>
    <td>΃pXł (hCuAfBNgAt@CAъgq)B


  </td>
  </tr>
  </table>
</div>

  </body>
</html>
