Like this for instance ? (URL.path must start and end with '\').

<cfset docroot="e:\wibble">
<CFDIRECTORY DIRECTORY="#DocRoot##URL.path#"
        NAME="dir">
<table>
<CFoutput QUERY="dir">
        <cfif #dir.Type# is "Dir">
                <cfif #dir.Name# is ".">
                <cfelseif #dir.Name# is ".."> 
                <cfelse>
                <tr>
                        <td><a
href="fileview.cfm?path=#URL.path##Name#/&dept=#dept#">#Name#</a></td><td
width="5">&nbsp;</td> <td>Directory<td>
                </tr>
                </cfif>
        <cfelse>
                
                <tr> <cfset mysize=Ceiling(Size/1024)>
                        <td><a
href="#WwwPath##URL.path##Name#">#Name#</a></td><td width="5">&nbsp;</td>
<td>#mysize#k</td>
                </tr>
                
        </cfif>
</cfoutput>

-----Original Message-----
From: Gavin Lilley [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 2:01 PM
To: CF-Talk
Subject: browsing directories on client


I am building a little program which will browse a novel directory which is
mapped to all network computers as drive l: in an Win NT environment.

I would like to be able to browse the clients files - allowing them to open
files and navigate the directory structure. Can this be done?

--
Gavin Lilley
Internet / Intranet Developer
http://halesowen.ac.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to