Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP/Scripting Host (Shell Object) tip
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00292982
Message ID:
00293097
Views:
49
>>>You ought to write a book on this kind of stuff! I'd buy it in a heart beat. Thanks George.
>>
>>Me??? Nope, I'm a newbie in this realm (still trying to figure a lot out). However, there has been some talk about a couple of us writing some of this sort of stuff up and posting it here. I know Ed Rauh has been working on a doc on Wiki. He's being my mentor with this.< g >
>
>I look forward to it. Maybe a new club is in order, say the ScriptingObjects and Tequilla club?

Hi,

Here some useful links to work with windows scripting stuff:

Shell object:
http://msdn.microsoft.com/library/sdkdoc/shellcc/shell/Objects/Shell/Shell.htm#Shell

Windows Scripting Host
http://wsh.glazier.co.nz/default.asp

Examples of scripts, including file management
http://cwashington.netreach.net/script_repository/query.asp

Written below is a piece of VB code to copy a file.
This code cam be easily rewritten in VFP. It displays Windows Copy box. This is an extract of code originally posted by someone else on cwashington's Web site. So it is not mine.

Set winShell = CreateObject("Shell.Application")
winShell.NameSpace("c:\Destination folder\").CopyHere "L:\Source folder\MyFile.dbf"
Set winShell = Nothing

HTH,
Igor Gelin
Database Developer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform