Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2005 Mar : How to use shortcut parameters inside my application
| Subject: | How to use shortcut parameters inside my application |
| Posted by: | "Clément Doss" (cdo..@dhs.com.br) |
| Date: | Wed, 30 Mar 2005 19:18:18 |
Hi,
I build an application for a company that should be used in a LAN...
All the users do have a shortcut on their desktop pointing to the application on a
server, and some setup files (.cfg, .dat, .ini) are being created in the application
folder. So far so good.
The problem arose due to the fact that the company will need "extra copies" of this
software, and each copy will need a special "set" of configuration files.
Some fellows said that I could create shortcuts that are pointing to the same
location, but each "working directory" would be set accordingly. The "only" thing my
application would do is to call that shortcut "Working Directory" instead of
extrating the path from Application.exename. And all the config files would be
created into that working directory.
I understood that this scenario would be possible
\MyApplication
\Bin
All Exe,Dlls and stuff here
\Database
DatabaseFile (This will be the only copy. All the instance will work with the
same database)
\Customer 1
Shortcut to main EXE
Config file for customer 1
\Customer 2
Shortcut to main EXE
Config file for customer 2
\Customer ...
\Customer N
Another fact is that the client machine will have a shortcut that will point to a
shortcut.
This application can "self" update, and I don't want to have diferent version for
each customers. The same database will be used for each and every instance of the
application. So I thought that having this directory structure would be a nice idea.
But I never heard that we could use shortcuts that way.
I have a batch file that is updating each directory, but today, a new "Customer" was
included, and a diferent version of the application ended up into his folder. This is
a manual operation, so someone messed things up. Fortunately nothing serious happened.
Any thoughts?
TIA,
Clément