I have done it as follows without the cfdirectory code as
==============================
- <cfdirectory directory="#ExpandPath( '..\..\..\..\0addResume\from word to html2\' )#" action="list" name="rs">
-
-
<cfloop query="rs">
-
-
<cfoutput>
-
<cfif rs.type IS "dir">
-
#rs.name#
-
<cffile action="rename" source="#dd##rs.name#" destination="#dd##rs.name#_pp">
-
</cfif>
-
<p>
-
</cfoutput>
-
============== it is running fine ======
If I want to use cfdirectory, how do I do it??
- <cffile action="rename" source="#dd##rs.name#" destination="#dd##rs.name#_pp" attributes="normal">
-
or
-
<cfdirectory action="rename" source="#dd##rs.name#" destination="#dd##rs.name#_xxx" attributes="directory">
-
it gives an error:-
Attribute validation error for the CFDIRECTORY tag.
When the value of the ACTION attribute is RENAME, the tag requires the attribute(s): DIRECTORY,NEWDIRECTORY.