You are here

Support passing launching command line switch/parameter in appinfo.ini

3 posts / 0 new
Last post
Mark888
Offline
Last seen: 1 week 6 days ago
Joined: 2022-09-28 11:21
Support passing launching command line switch/parameter in appinfo.ini

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

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 34 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
AppNamePortable.ini AdditionalParameters

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!

Mark888
Offline
Last seen: 1 week 6 days ago
Joined: 2022-09-28 11:21
Thanks for answer my question

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

Log in or register to post comments