home *** CD-ROM | disk | FTP | other *** search
/ Internet Pratica / IPRAT_01.iso / ASP / ASPFusion_Basic_Suite / examples / cf / advfile / act_rename.cfm < prev    next >
Encoding:
ColdFusion Markup Language  |  2001-03-14  |  448 b   |  17 lines

  1. <html>
  2. <head>
  3.     <title>AdvFile Component</title>
  4. </head>
  5. <body>
  6. <cfobject class="AdvFile.File" action="CREATE" name="AdvFile">
  7. <cfset AdvFile.Attributes = #Form.Attributes#>
  8. <cfset temp = AdvFile.Rename (#Form.Source#,#Form.Destination#)>
  9. <cfif #AdvFile.IsError# Eq 1>
  10.     <cfoutput>#AdvFile.ErrorReason#</cfoutput> <br>
  11. <cfelse>
  12.     <cfoutput>Successfully renamed</cfoutput> <br>
  13. </cfif>
  14. <a href="dsp_rename.htm">Back</a>
  15. </body>
  16. </html>
  17.