<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>EXPANDPATH</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">EXPANDPATH</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>
relative_path ̒lƓ́AvbgtH[ɉ΃pX쐬āAx[XpXɒǉ܂B̊֐ł (֐ Expand ł)Arelative_path p[^ɐ΃pX܂͑΃pXgpł܂B
</p>

<p>
x[XpXƂ́AݎsĂy[W̃fBNgpXłBx[XpX pageContext.getServletContext() ɕۊǂĂ܂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>
񑊑΃pX̖̕ɃXbV (܂͉~L) ܂܂Ăꍇ́A߂l̖ɂ܂߂܂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>ExpandPath(relative_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>
FileExistsAGetCurrentTemplatePath, GetFileFromPath
</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">qXg</span>
<p>
ColdFusion&#160;MX: relative_path p[^̓̕ύX : ̊֐ relative_path p[^ɂ́A΃pXƑ΃pX̂ǂgpł悤ɂȂ܂B̊֐ł̓pX̕ϊɁAColdFusion Administrator Œ`ꂽz}bsOgp܂B̊֐ł́AIISAApacheA܂͑ Web T[o[Œ`Ă鉼z}bsOmɎsł킯ł͂܂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">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">gp@</span>
<p>
̃p[^܂͕ԂꂽpXłꍇAG[܂B
</p>

<p>
̗ł́A΃pX̗Lȍ\܂B
</p>
<ul>

<li>ExpandPath( &quot;*.*&quot;)</li>

<li>ExpandPath( &quot;/&quot;)</li>

<li>ExpandPath( &quot;&quot;)</li>

<li>ExpandPath( &quot;/mycfpage.cfm&quot;)</li>

<li>ExpandPath( &quot;mycfpage.cfm&quot;)</li>

<li>ExpandPath( &quot;myDir/mycfpage.cfm&quot;)</li>

<li>ExpandPath( &quot;/myDir/mycfpage.cfm&quot;)</li>

<li>ExpandPath( &quot;../../mycfpage.cfm&quot;)</li>
</ul>
    </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;ExpandPath ̗ - QƐp&lt;/h3&gt;
&lt;!---
&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@C 
   #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āAXjybgfBNg̓e
   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;expandpath.cfm&quot; METHOD=&quot;post&quot;&gt;
&lt;h3&gt; &lt;I&gt; ̃fBNgɂt@C͂܂
&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="RELATIVE_PATH">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">RELATIVE_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ɕϊÃ݂fBNg (.&#160;&#160;..) ̑΂܂͐΃fBNg̃
t@X܂̓t@CłBXbV܂͉~L܂߂邱Ƃł܂B


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

  </body>
</html>
