Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell application
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00670754
Message ID:
00671473
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform