|
-
Jan 11th, 2008, 01:59 PM
#1
Thread Starter
Hyperactive Member
[2005] User needs 2 or more instances
I made a VB.NET 2005 application package that stores its configuration using my.settings.
When my package is installed on a computer, some users may need to run two or more instances of my program, each one having different settings.
The only way I managed to do it, the user must go in my program folder, create a copy of the executable with a different name. Because settings are stored in an XML file based on the executable file name, each program has its own settings.
However this is not elegant, if the user installs an upgrade, he must delete and recreate the executables copy every time.
Is there a way to let the user run the same executable, and by using a different command line parameter, let the program use a different set of settings?
For example, my executable name is prog.exe
I make a shortcut to prog.exe with the parameter "home"
I make a shortcut to prog.exe with the parameter "office"
If I start both shortcuts, the first program would use the "home" settings while the second program would use the "office" settings.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|