Rename File using php
<?php
rename("FilePath/org_file.txt", "FilePath/new_file.txt");
?>
Rename File using Java Script
function ChangeFileName()
{
var fso, f;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFile("FilePath/org_file.txt");
f.name = "new_file.txt";
}
No comments:
Post a Comment