sjuvenal
23rd June 2004 23:23 UTC
NSIS: Rename command not reliable
When I use the Rename command to move a directory, the directory doesn't always get moved.
Rename foo\bar\goop C:\barf
Apparently randomly, the C:\barf directory is not created.
Am I incorrectly using the Rename command?
Any ideas on why it fails 10% of the time?
Takhir
24th June 2004 08:15 UTC
Another log. volume in 10%.
MSDN: "The one caveat is that the MoveFile function will fail on directory moves when the destination is on a different volume. "
niteflyer
24th June 2004 15:03 UTC
You should specify the SrcDir as an absolute path. I'm not sure, whether you may rely on the 'current' directory when you execute 'Rename' with a relative path.