复制某目录下所有文件至指定目录

复制某目录下所有文件至指定目录
Setfso=CreateObject("Scripting.FileSystemObject")
SetCur_Folder=fso.getfolder(Server.MapPath(SourcePath))''源文件夹
Distination_Path="c:est"
Setsub_files=Cur_Folder.files
foreacheach_fileinsub_files
sub_file_path=each_file.name
fso.CopyFileServer.MapPath(SourcePath)&"/"&sub_file_path,Distination_Path&"/"&sub_file_path,True
Next

你可能感兴趣的:(C++,c,C#)