Using SHFileOperation within a Windows service

后端 未结 4 956
鱼传尺愫
鱼传尺愫 2021-01-21 23:19

It\'s possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level pr

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-22 00:01

    I had this issue as well and working at implementing a secure and reliable network file copy between servers and network shares ( most of these shares are CIFS / NetApp filer based ) and SHFileOperation fails from time to time.

    now started using ROBOCOPY (available by default in all Microsoft OS from Vista/Server 2008 upwards) and really looks interesting and reliable.

    this has opened my eyes: https://stackoverflow.com/a/1030752/559144

提交回复
热议问题