>Hi,
>
>Can someone provide me a sample for coying a folder using the API ?
>I've been using WSH for this purpose in the last years, but some machines are not allowing WSH for security reasons.
>
>TIA
>
>Cesar
Hi Cesar,
Try this
oShellApp = CreateObject("Shell.Application")
objFolder = oShellApp.NameSpace("C:\Targetfolder")
objFolder.CopyHere("c:\SourceFolder\*.*")
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst