开发者

Ability of SHFileOperation

开发者 https://www.devze.com 2022-12-10 12:05 出处:网络
Does SHFileOperation support to move and rename filesat the same time? I\'v got a set of files :开发者_如何转开发

Does SHFileOperation support to move and rename files at the same time?

I'v got a set of files :开发者_如何转开发 c:\ f1.bmp f2.bmp f3.bmp f4.bmp

I want to move each to new folder, and rename them: d:\ b1.bmp b2.bmp b3.bmp b4.bmp

Can I use SHFileOperation? and just do it once? Many thanks!


SHEFILEOPSTRUCT msdn

You can use the FOF_MULTIDESTFILES as stated in the msdn article: "The pTo member specifies multiple destination files (one for each source file in pFrom) rather than one directory where all source files are to be deposited." Perform a FO_MOVE operation with this flag.

0

精彩评论

暂无评论...
验证码 换一张
取 消