The MASM Forum

General => The Campus => Topic started by: shaikkareem on March 21, 2014, 01:37:32 AM

Title: copyfile..........
Post by: shaikkareem on March 21, 2014, 01:37:32 AM
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}
Title: Re: copyfile..........
Post by: ragdog on March 21, 2014, 01:57:41 AM
Hi

Is Cpp but it help
http://www.cplusplus.happycodings.com/Algorithms/code38.html
Title: Re: copyfile..........
Post by: Tedd on March 21, 2014, 02:47:55 AM
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