Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desktop Icon
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00142286
Message ID:
00142287
Views:
21
>Is it possible in VFP5 (itself) to set up a desktop icon to be installed during the install from distro disks that contains info pointing to the apps .cfg file?
>Or does this take a 3rd party app to accomplish?

You can create a Shortcut (an .LNK file) in several ways; the Win32API contains a family of functions (IShellLink) that will manipulate them, but VFP requires a wrapper .DLL to be put in between itself and the API to make the call because of the IShellLink API parameter passing methods. George Tasker recently released a wrapper to handle this here on UT; FoxPro Advisor also had a wrapper .DLL in one of their prior issues (it doesn't have the functionality that George's does). In addition, there are several freeware executables (like SHORTCUT.EXE from the Win95 Resource Kit) that will do this based on command line switches.

Locating the current Desktop can best be accomplished by examining the registry; the registry key "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" in HKEY_CURRENT_USER contains a REG_SZ (registry string) called Desktop that points at the currently-logged in user's Desktop folder (important under NT or with 95/98 and user profiles enabled, since not all users share the same Desktop.)

>
>TIA,
>Dan
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