Can somebody please please help me with this function. I've been trying to use this function to copy folders from one location to another. I was thinking of using this because of the animated progress bar and status info. it provides while copying.
Here's part of my code:
Declare INTEGER SHFileOperation IN Shell32.dll SHFILEOPSTRUCT
PUBLIC oFileStruct
oFileStruct = CREATEOBJECT([SHFILEOPSTRUCT])
WITH oFileStruct
.hwnd = Thisform.HWnd
.wFunc = 0x2 &&[fo_copy]
.pfrom = [c:\dummy\*.*]
.pTo = [c:\documents\dummy]
.fFlags = 0x100
ENDWITH
=SHFileOperation(oFileStruct)
DEFINE CLASS SHFILEOPSTRUCT AS Custom
hwnd = 0
wFunc = 0
pFrom = ''
pTo = ''
fFlags = 0
fAnyOperationsAborted = 0
hNameMappings = 0
lpszProgressTitle = ''
ENDDEFINE
~~~~~~~~~~~~~~~~~~~
This just doesn't seem to work.. it give me a 'too many argument' message.. please help!
-vfpshe
Here's part of my code:
Declare INTEGER SHFileOperation IN Shell32.dll SHFILEOPSTRUCT
PUBLIC oFileStruct
oFileStruct = CREATEOBJECT([SHFILEOPSTRUCT])
WITH oFileStruct
.hwnd = Thisform.HWnd
.wFunc = 0x2 &&[fo_copy]
.pfrom = [c:\dummy\*.*]
.pTo = [c:\documents\dummy]
.fFlags = 0x100
ENDWITH
=SHFileOperation(oFileStruct)
DEFINE CLASS SHFILEOPSTRUCT AS Custom
hwnd = 0
wFunc = 0
pFrom = ''
pTo = ''
fFlags = 0
fAnyOperationsAborted = 0
hNameMappings = 0
lpszProgressTitle = ''
ENDDEFINE
~~~~~~~~~~~~~~~~~~~
This just doesn't seem to work.. it give me a 'too many argument' message.. please help!
-vfpshe