Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows FileCopy
Message
From
27/03/2000 17:49:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00351014
Message ID:
00351069
Views:
18
>>>I know I've seen it here, but can't find the print I made...I apologize in advance for the redundancy.
>>>
>>>What is the syntax for calling the native Windows FileCopy - so I can copy temp.dbf from K:\production to C:\windows\temp?? I want the user to see the AVI since its a several second copy.
>>>
>>>TIA
>>
>>Phil,
>>
>>Are you referring to the Shell.Application object?
>>oShell = CREATEOBJECT('Shell.Application')
>>* lcdir is the target directory
>>oFolder = oShell.GetFolder(lcdir)
>>* lcfiles is the filename
>>oFolder.CopyHere(lcfiles)
>
>George and Ed,
>
>This is exactly what I was lookng for. But after the CREATEOBJECT line, I get an error dialog: "OLE Error Code 0 x 80040154 Class Not Registered"
>

The OS installed on your system does not have at least Shell version 4.71 installed, so Shell.Application is not available to you. The solution is to upgrade the shell; without knowing what you've current got installed, but in general:

Win95 - if it is not now present, you have to install IE4. If you currently have IE5 and never had IE4 installed, you must uninstall IE5, install IE4, and then reinstall IE5 to add the needed components.

WinNT 4.0 - Must have post NT 4.0 SP3 installed with Option Pack 4 or IE 4. Current is NT 4.0 SP6a

Win98 - should be present in all versions.

Win2K - should be present in all versions.

The issue for Win95 is the installation of Active Desktop, which could only be added to the original retail Win95 via IE 4. IE 5 will not add Activce Desktop to Win95 retail installations by itself. I believe the necessary components were included in latest (Win95 OSR 2 v 2.1 and later) releases of Win95. These OSR 2 releases are not upgrades to the original Win95 retail product.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform