home *** CD-ROM | disk | FTP | other *** search
/ Internet Pratica / IPRAT_01.iso / ASP / ASPFusion_Basic_Suite / examples / asp / advfile / act_rename.asp < prev    next >
Encoding:
Text File  |  2000-10-01  |  452 b   |  21 lines

  1. <html>
  2. <head>
  3.     <title>AdvFile Component</title>
  4. </head>
  5. <body>
  6. <%
  7. dim File
  8. set File = Server.CreateObject("AdvFile.File")
  9. File.Attributes = Request.Form("Attributes")
  10. File.Rename Request.Form("Source"), Request.Form("Destination")
  11. if (File.IsError = 1) then
  12.     Response.Write File.ErrorReason & "<br>"
  13. else
  14.     Response.Write "Successfully renamed" & "<br>"
  15. end if
  16. set File = Nothing
  17. %>
  18. <a href="dsp_rename.htm">Back</a>
  19. </body>
  20. </html>
  21.