选择文件要保存的具体位置
<input type=button value="选择路径" onclick="BrowseFolder()"/><script> function BrowseFolder(){ var Message = "请选择文件夹"; var Shell = new ActiveXObject("Shell.Application"); var Folder = Shell.BrowseForFolder(0, Message, 0x0040, 0x11); if (Folder != null) { Folder = Folder.items();//返回FolderItems对象 Folder = Folder.item();//返回Folderitem对象 Folder = Folder.Path;//返回路径 if (Folder.charAt(Folder.length - 1) != "\") { Folder = Folder + "\"; } alert(Folder); } }</script>
?这样可以自己选择想要保存文件的位置。
}