Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy, rename or move files and folders
#1
Syntax
cop[+|-|!] from to [flags]
ren[*|+|-|!] from to [flags]

Quote:The functions work in the same way as if the user would do it manually.
They are quite slow with small files, especially on Vista.
You can instead use faster functions: FileCopy, FileMove and FileRename.

why are they faster?
pi
#2
cop etc use ShellExecuteEx. It has more features.
FilecOPY ETC USE LOWER LEVEL api FUNCTIONS, LIKE CopyFileEx. They are slightly faster.

Also, on Vista ShellExecuteEx tries to activate its progress window, even if its hidden. For smaller files I removed the progress flag, but its difficult to calculate folder size, so when you copy folders you probably notice that currently active window is temporarily deactivated.


Forum Jump:


Users browsing this thread: 1 Guest(s)