Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Main Foxpro Window on exe
Message
De
28/05/1999 19:05:03
 
 
À
28/05/1999 18:40:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00224100
Message ID:
00224200
Vues:
24
>>>The problem occurs when you distribute an exe and are not around to add the config extension to the icon's short-cut
>>>
>>>Example: test.exe -cc:\test\config.vfp
>>>
>>Use a post-setup executable and either George Tasker's LNKFILES.DLL or Wscript.Shell's CreateShortcut method to build the shortcut programmatically. You can write the post-setup executable in VFP and burn a CONFIG.FPW with RESOURCE = OFF and SCREEN = OFF into it pretty safely as long as nothing complex is being done.
>
>Even more simply, you can just include the Config.fpw file in the project.

From my POV, that's not best practice, since it prevents creating a per-workstation CONFIG file, which, among other things, is used to direct where the temp files are placed. If you don't specify where to put them in a CONFIG file, VFP will put the in the startup directory for the app, which means that an .EXE fired in a network directory puts the temp files on the network, whcih often isn't the best choice from either an application or network point of view. Neither is a hard-coded local path, in case the target disk gets full or a cow flies by and you forget to create the temp file path.

C:\ is about the only directory guarenteed to always be present, but using it is an incredibly bad move; the root directory of a drive has a limited number of entries on FAT volumes regardless of operating systems, users get upset seeing dozens of .TMP files left lying around in the root of a drive after a crash, and it just is not safe to delete all the files in the root of a drive...
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform