Devo rinominare dei file asp:
ma mi da errore: permesso negato.
Eppure il permesso ce l'ho perchè lo stesso file lo ho creato con uno script.
il codice è il seguente:
Codice PHP:
nuovonome = replace(menu("pagina"),oldmenuname, request.Form("MenuTitle_1"))
nomeOLDfileasp =menu("pagina")
strOLDPath = Server.Mappath("/public/page/"&nomeOLDfileasp)
strNEWPath = Server.Mappath("/public/page/"&nuovonome)
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If (objFSO.FileExists(strOLDPath)) Then
response.Write("
File presente
")
objFSO.MoveFile strOLDPath, strNEWPath
else
response.Write("
File non presente
")
end if
Set objFSO = Nothing
che devo fare?