i'm trying to copy a folder(directory) to a new location which is out side[to a new drive say g:\ dirve] from current drive [e:\] in my computer.
so for this i'm using copyfile because movefile copies the original one and delete that, but a problem got....getlasterror returning file type unknown or something.........what i do to copy a folder[directory] completely from one drive to another drive which containing a few files and sub folders {sub directories}
Hi
Is Cpp but it help
http://www.cplusplus.happycodings.com/Algorithms/code38.html
Use SHFileOperation (http://msdn.microsoft.com/en-us/library/windows/desktop/bb762164%28v=vs.85%29.aspx) (from shell32.inc), with SHFILEOPSTRUCT.wFunc set to FO_COPY