shfileoperation

Ability of SHFileOperation

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! ...

TVirtualExplorerTree and SHFileOperation on Win7/Vista 64bit

I'm creating a small Delphi application and if I show whatever form including TVirtualExplorerTree component I cannot delete files to recycle bin under Win7/Vista 64bit. SHFileOperation with flag FOF_ALLOWUNDO returns code 127 - The procedure point could not be found. This happens only if I want to delete to recycle bin. It is obvious th...

SHFileOperation FO_MOVE deletes a file if the destination drive is full

I had a piece of code which uses windows SHFileOperation function with FO_MOVE operation. Additional flags specified were FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_SILENT. A particular weird behavior was observed when the destination drive was full. In this case, MOVE could not place the file in destination folder but the source file was...

Performance issue when moving of files on network shares

Hi, I'm writing an application which can copy files on a network share. Usually the files are moved on the same physical hard drive. If you test this with Windows Explorer, this operation will be executed really quickly. It seems, that Windows knows about the same location and does a real movement and not a copy and delete (which would ...