Code: Select all
MoveFileEx_
Code: Select all
SHFileOperation_
MoveFileEx_ can move files cross-volume (even into overlong paths) but fails to do this with folders.
SHFileOperation_ can move even folders cross-volume but doesn't support overlong paths at all, not even with the necessary prefix.
COM interfaces are a totally black box for me...
Does anybody have time to show an example of how to implement a function:
Code: Select all
MoveFolder(srcFolder.s, dstFolder.s)
Code: Select all
\\?\D:\Temp\abc
into
\\?\C:\Temp\Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure proident consequat nisi\abc
The
Code: Select all
C:\Temp\Lorem... nisi\
Thanks in advance!