Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy like Explorer ( using Explorer )
Message
De
21/10/1999 09:22:19
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Roumanie
 
 
À
21/10/1999 09:00:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00278035
Message ID:
00279250
Vues:
12
>Shell.Application is fully supported for anything with Shell32.DLL version 4.71 or later, including Win98se

On my system - NT4.0wks sp4 with Ie4.0 sp1 - version of shell32.dll is 4.0 and code works.

>NameSpace is a METHOD not a property, and the return from invoking Shell.Application's NameSpace method will be a folder object for the vDir argument. If vDir doesn't exist, or isn't a valid folder (for example, a domain or a nonexistant directory) then the NameSpace method can't return a folder object. You must specify a value for the vDir, and must test the return type to make sure its an object.

I supply a value for vDir that is sure valid.

I use this:

winfile=createobject("Shell.Application") && on systems without IE4 get error class not registered but not in Win98se
fileto="c:\folder1\file1.ext" && folder exist but file no
filefrom="x:\folderx\file1.ext" && folder and file exist
winfile.namespace(fileto).copyhere(filefrom) && on win98se namespace is not object
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform