Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00670754
Message ID:
00671473
Vues:
16
>why the follow code does't work under windows xp?
>
>OSHELL = CREATEOBJECT("SHELL.APPLICATION")
>OFOLDER = OSHELL.NAMESPACE("&DIRTRANSF") DESTINO
>FOLDERSOURCE = DEDE + "*.*" ORIGEM
>OFOLDER.COPYHERE("&FOLDERSOURCE")
>
>sergio trevisol


What are you trying to do? Copy a file?
oFSO = CreateObject("Scripting.FileSystemObject")
oFSO.CopyFile("c:\temp\test.txt", "m:\test1.tst")
or
oShell = CreateObject("Shell.Application")
oFolder = oShell.NameSpace(DIRTRANSF)
FOLDERSOURCE = DEDE + "*.*"
oFolder.CopyHere(FOLDERSOURCE)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform