Hello!
I create program for work with floppy | removable drives (Windows 9x/2000/XP). I don't know, how I can copy ALL files and folders to the current folder (destination). Please, help me. (Maybe you can send a small source for MASM? ;)
Best regard!
Excuse me for my TRASh English.
Posted on 2004-04-28 09:29:46 by Hogo
Hi,

Hope this helps... it can copy the contents of any directory to any other - its not exactly the best code as i was trying to work out how to use the FindFirstFile/FindNextFile/FindClose API when i wrote it, but it works.

Ossa
Posted on 2004-04-30 08:24:59 by Ossa
Ossa
Thank you! If you want, I can send you some files for wok with FDD (other sources).
My e-mail:http://www.asmcommunity.net/board/cryptmail.php?tauntspiders=in.your.face@nomail.for.you&id=5718511899cdea50f0d4fa190e04ee5a
Posted on 2004-04-30 10:27:11 by Hogo
.DATA


src DB "C:\Dev\template\*.*", 0, 0
dest DB "E:\Pending\5", 0, 0

.CODE

XCopy PROC lpSourceDir:DWORD, lpDestinationDir:DWORD

LOCAL shfile:SHFILEOPSTRUCT

invoke RtlZeroMemory, ADDR shfile, SIZEOF SHFILEOPSTRUCT
invoke GetDesktopWindow
mov shfile.hwnd, eax
mov shfile.wFunc, FO_COPY
push lpSourceDir
pop shfile.pFrom
push lpDestinationDir
pop shfile.pTo
invoke SHFileOperation, ADDR shfile

ret

XCopy ENDP

start:

invoke XCopy, OFFSET src, OFFSET dest
you can omit *.* and a call to get GetDesktopWindow but when doing full drives like A:\ add *.* (A:\*.*)

:grin:
Posted on 2004-04-30 12:41:51 by arkane