>thanks, i'll work on it and get back to you

Thanks, I tried out your method, it generated the list and grouped them 
according to their individual directories but it wont work for what i wanted to 
use it for. What i intend to do is to pass the directory and file information 
to a <cfpdf> tag which merges the files in each directory using the directory 
name as the final file output for each directory. I need to do this 
programatically because hundreds of thousands of files are involved.

Here is what i came up with:

<cfdirectory action="list" directory="D:\Dox" name="filelist">
<cfset tempPath="">
<cfloop query="filelist">
<cfset fPath="#directory#\#filelist.name#">
<cfpdf action="merge" directory="#fpath#" 
destination="D:\dox\#filelist.name#\#filelist.name#.pdf" overwrite="yes">
</cfloop>

and i get the error below, i have tried to, store and retrieve the directory 
and filename in a database, still the same problem. Can anyone tell me what i 
am missing.

The system has attempted to use an undefined value, which usually indicates a 
programming error, either in your code or some system code. 
Null Pointers are another name for undefined values.  
 
  
The error occurred in C:\wamp\www\codex\tesk.cfm: line 14
 
12 : <cfloop query="filelist">
13 : <cfset fPath="#directory#\#filelist.name#">
14 : <cfpdf action="merge" directory="#fpath#" 
destination="D:\pdfgen\#filelist.name#\#filelist.name#.pdf" overwrite="yes">
15 : </cfloop>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326611
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to