Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: afilecopy
AddExtender("wwsop34I.dll") pause("","Copy Favorites ... no error") src="c:\windows\favorites" targ="d:\registry\favorites" flags=0 afilecopy(src,targ,flags) pause("","Copy Favorites ... with error") src="c:\windows\favorites\" targ="d:\registry\favorites\" flags=0 afilecopy(src,targ,flags)
I suspect you want...
src="c:\windows\favorites\*.*" targ="d:\registry\favorites" flags=0 afilecopy(src,targ,flags)
How does one do only a folder (rather than all subtrees), without its sub folders? Is that the intent of the flags=128?
More to the point why is the trailing "\" not a WinBatch runtime error, rather than a OS copy error? Why does the extender not add the *.* if that is what is needed to make it work?
The extender passes your exact strings to the Windows API rountine. We've noticed it is very sensitive to what you specify, and attempted to document it somethat in the aFileCopy examples. As far as we can tell the API has some rules controlling what it does based on the strings provided, but can't find those rules documented.
Article ID: W14197
Filename: Shell Op Extender Copy Error.txt
File Created: 2001:03:01:15:24:32
Last Updated: 2001:03:01:15:24:32