<!--- set this to the physical path down to webroot on your server --->
<CFSET sWebRootDirectory = "/html/[URL unfurl="true"]wwwroot">[/URL]
<!--- set this to the path to your directory of images RELATIVE to webroot --->
<CFSET sImageDirectory = "/somepath/images">
<!--- give CFDIRECTORY the concatenation of the physical path to webroot PLUS the relative path to the images directory... in this example, ColdFusion would see this path as "/html/[URL unfurl="true"]wwwroot/somepath/images"[/URL] --->
<CFDIRECTORY action="LIST" directory="#sWebRootDirectory##sImageDirectory#" name="qryDirectoryFiles">
<CFOUTPUT query="qryDirectoryFiles">
<!--- now give the anchor tag just the relative path to the image directory (plus the file name) --->
<a href="#sImageDirectory#/#qryDirectoryFiles.name#">#qryDirectoryFiles.name#</a><br />
</CFOUTPUT>