#DEFINE FOF_CREATEPROGRESSDLG 0 cParentFolder = "c:\Archive" objShell = CreateObject("Shell.Application") objFolder = objShell.NameSpace(cParentFolder) objFolder.CopyHere("C:\Folder", FOF_CREATEPROGRESSDLG) * or objFolder.CopyHere("C:\Folder" )>I tried this code and had a "Missing operand error" on the last line, however as the FOF_CREATEPROGRESSDLG is an optional parameter I omitted it but then I get the same error msg than before: "objfolder is not an object"
>>#DEFINE FOF_CREATEPROGRESSDLG = 0 >> >>cParentFolder = "c:\Archive" >>objShell = CreateObject("Shell.Application") >>objFolder = objShell.NameSpace(cParentFolder) >>objFolder.CopyHere("C:\Folder", FOF_CREATEPROGRESSDLG) >>>>