这个问题可以这样的解决:vb6下编译通过的。Option ExplicitPrivate Const FO_MOVE = &H1Private Const FO_COPY = &H2Private Const FO_DELETE = &H3Private Const FO_RENAME = &H4Private Const FOF_NOCONFIRMATION = &H10Private Const FOF_NOCONFIRMMKDIR = &H200Private Const FOF_ALLOWUNDO = &H40Private Const FOF_MULTIDESTFILES = &H1Private Type SHFILEOPSTRUCThWnd As LongwFunc As LongpFrom As StringpTo As StringfFlags As IntegerfAborted As BooleanhNameMaps As LongsProgress As StringEnd TypePrivate Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As LongPrivate Sub Command1_Click()Dim SHFileOp As SHFILEOPSTRUCTSHFileOp.wFunc = FO_COPYSHFileOp.pFrom = "g:\aa.txt" + Chr(0) + "g:\bb.txt" + Chr(0)SHFileOp.pTo = "陪坦毕g:\bmp"SHFileOp.fFlags = FOF_ALLOWUNDO + FOF_MULTIDESTFILESSHFileOperation SHFileOpEnd Sub注意:这样信铅的一段代码就可以完成你的任务,其中SHFileOp.pFrom = "g:\aa.txt" + Chr(0) + "g:\bb.txt" + Chr(0)aa.txt和bb.txt是任意写的东西,在每个芦芹文件之间要加上chr(0)分隔符。SHFileOp.fFlags = FOF_ALLOWUNDO + FOF_MULTIDESTFILESflags可以任意的组合。
相关文章
-
mvbox歌曲下载不了怎么办
2023-05-01 03:02 阅读(590) -
TVB《壹号皇庭》1—3部分别有几集?
2023-04-30 15:10 阅读(699) -
VB中的BorderStyle是什么意思?
2023-04-30 07:59 阅读(568)
1 tvb剧集《神探伽利略》的各个角色的粤语配音员是谁?
612 阅读
2 tvb 翡翠台 近年来的 日本旅游节目
653 阅读
3 RMVB和RM用什么播放器
664 阅读
4 求TVB所有警匪片电视剧
653 阅读
5 tvb粤语动漫哪里可以看
608 阅读