Rename File

This will rename a specific file and or move the file to a different directory

<% Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

objFSO.MoveFile Server.MapPath("/someDir/Foo.asp"), _
Server.MapPath("/someDir/Bar.asp")

Set objFSO = Nothing %>

Views 2555 Downloads 874


JeffSmith
26
File System Classic ASP
Revisions

v1.0