oShell = CREATEOBJECT("Shell.Application") * Get the target directory oFolder = oShell.NameSpace("C:\MyFolder") * Copy with simple progress bar and no confirmation * on overwrite oFolder.CopyHere("D:\MyFolder, 0x310)Now using the Scripting.FileSystem object
oFSO = CREATEOBJECT("Scripting.FileSystemObject") * Copy with overwrite. No progress bar oFSO.CopyFolder("C:\MyFolder, "D:\MyFolder", .T.)I wrote about both for the VFUG newletter (the latter with Ed Rauh). These are available on-line at www.vfug.org. Click on my name and you can find the exact issues. The Scripting.FileSystem object was the third of a series of five articles on the Windows Script Host.