Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create multiple yet unique desktop shortcuts?
Message
De
10/09/2002 01:35:34
 
 
À
10/09/2002 01:16:21
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00698572
Message ID:
00698632
Vues:
19
>>Is this an finite number of exe's and directories or is it variable?
>
>Background info: In the orignal app, the client numbers are hardcoded while building the project and executable. This was stored in DirectoryA.
>
>There is a situation now, where a clinet may have more than one client number. So I generate another executable and store it in DirectoryB.
>
>Both DirectoryA and DirectoryB and even C,D,E... could reside on one computer or many computers.
>
>The Data directory is just one directory, which all of the above should access.
>
>Issue now is to place desktop shortcuts for each executbale, so the user may acces which ever clinet number he/she wshes to work with. All this without using any installers.
>
>Basically, I give the 2 directories e.g. DataDirectory which contains the data files and DirectoryA which contains executableA, DirectoryB which contains executableB so on and so forth.

This seems like a design issue that would be better handled by making the client number a variable (rather than hard coded) that can either be passed to the exe or stored in a table or configuration file and presented as a choice when starting the application. This way you could have one exe that accesses the common data directory that knows its client number based on the parameters passed from the shortcut (if you are using shortcuts that pass in parameters), or based on the choice that the user selected on starting the application. This without the additional overhead and redundant copies of the application on the user's computer and without the additional maintenance of multiple projects with the only difference being the customer number. If there are other differences, can they be handled through configuration rather than duplicating code in multiple places?


But in any event, if you need to create desktop icons, the function that I provided should work for you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform