>Hello,
>
>I have noticed, on several threads, that a solution might be presented as BOTH a WSH function and an API function. What are the differences between WSH and API function calls? Where, when, and why would I choose one over the other?
>
>Thanks
>
David,
In some cases you do have a choice. In others, there are things that the WSH can do easily that you'd be very hard put to implement using API calls in VFP. For example, creating a short-cut link.
In some cases, using the WSH rather than the API can save you a tremendous amount of code.
The WSH was introduced in Win98 as an optional component. It did install by default. Beginning with Win2K it's an important part of the OS.
I'd suggest that you read the series of articles that my friend the late Ed Rauh and I wrote for the VFUG newsletters. They're available on-line at
www.vfug.org and began in the September, 2000 issue. You might want to look at the post-script I wrote to the series that appeared, I think, in May, 2001. This latter article dealt with the security issues.
George
Ubi caritas et amor, deus ibi est