Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell Folder Object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00812320
Message ID:
00812338
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
There's extra '=' in the #define. Try
#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"
>
>>Try
>>#DEFINE FOF_CREATEPROGRESSDLG = 0
>>
>>cParentFolder = "c:\Archive"
>>objShell = CreateObject("Shell.Application")
>>objFolder = objShell.NameSpace(cParentFolder)
>>objFolder.CopyHere("C:\Folder", FOF_CREATEPROGRESSDLG)
>>
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform