Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create folder and copy data into it
Message
 
To
28/09/2004 06:34:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00946159
Message ID:
00946601
Views:
26
>Dear Sir,
>
> wshFSObj = CREATEOBJECT("Scripting.FileSystemObject")
>
>The above line returns "OBJECT"
>No error message appears
>
>Please help again

OK If this line return OBJECT there is an easier way to copy folder. But keep in mind that not on all computers SYSADMINS enabled scripting. Try this:
cFolder1 = "d:\cotton"
cFolder2 = "c:\cotton"
wshFSObj = CREATEOBJECT("Scripting.FileSystemObject")
wshFSObj.CopyFolder(cFolder1, cFolder, .t.)
wshFSObj = NULL
RELEASE wshFSObj
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform