Hello,
While some kinds of command line parameter are supported under [Associations] section such as: FileTypeCommandLine, FileTypeCommandLine-extension, ProtocolCommandLine, SendToCommandLine, ShellCommandLine; the command line switch/parameter for launching the app is poorly supported. It is only supported via myAppPortable.ini which is not so obvious and only support for main App.
My suggestion is something as below:
appinfo.ini
[Control]
Start=AppNamePortable.exe
Start1=AppNamePortable.exe
Name1=AppName Portable Mode1
StartCommandLine=/switch=mode1
Start2=AppNamePortable.exe
Name2=AppName Portable Mode2
StartCommandLine=/switch=mode2
When using an app that has a PA.c Launcher, you can add additional parameters using the AppNamePortable.ini. This is detailed in the readme.txt linked from the help.html file in the root of the app and available from a right-click in the PA.c Platform. An example file of this exists within AppNamePortable\Other\Source. You copy it to AppNamePortable and then rename AppNamePortable.ini to the actual name of the app (example: InkscapePortable.ini). Within that file is an entry listed as AdditionalParameters= which will pass any additional parameters to the app when it is launched. This file is preserved as you upgrade.
Sometimes, the impossible can become possible, if you're awesome!
Thanks for answer my question.
I know about the AdditionalParameters in myAppPortable.ini. I also mentioned it in my post.
But as I say, it only support the mainApp, and can't be made into multiple running modes of an app.
My above suggestion works as shorcuts to multiple modes of an app.
Futher more, if appFolder has more exe files (auxiliary apps), we can pass arguments to the auxiliary apps as well