I only pointed this out because I view it as a good thing. The question of how to get these animations when copying files is often asked here.
FWIW, the CopyHere method takes an optional second parameter that can contain any one of the flags describe in the SHFILEOPSTRUCT structure, one of which is disabling these features.
>You can eliminate
both the animation and prompt to overwrite by using the FileSystemObject's CopyFile method in Windows Scripting Host:
>
>fso = CreateObject("Scripting.FileSystemObject")
>FSO.CopyFile("c:\somefolder\somefile.dbf", "c:\")
>
>>>This is an excellent tip, Igor. But you should have also pointed out that this function also uses the Windows file copy animation when copying large enough files. For anyone interested, Here is a VFP translation of the code to copy a file:
>>>
>>>oShell = CREATEOBJECT("Shell.Application")
>>>oShell.NameSpace("c:\").CopyHere("c:\\somefolder\somefile.dbf")
>>
>>Hi Eric,
>>
>>Moreover, this function asks to confirm overwriting files too.
>>
>>Igor
Erik Moore
Clientelligence