MoveFile() 移动文件
MoveFolder() 移动目录
例:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> filesystemobject </TITLE> <script type="text/javascript"> var fso = new ActiveXObject("Scripting.FileSystemObject"); var newpath = fso.MoveFile("c:\\boat.txt", "d:\\boat1.txt"); var newpath1 = fso.MoveFolder("c:\\ss","d:\\ss"); </script> </HEAD> <BODY> </BODY> </HTML>
时间: 2024-10-30 03:58:38