Topic: platform management of the parameter / switch at application launch
Description: Topic is focused to identify how to configure the portableapps platform manages to pass parameters (or commonly called switches) at application startup.
I've performed several searches in the forum and I haven't found a specific topic related to the parameter at application launch.
I've identified a post which resemble the same problem I'm experiencing and I've added the post "Command Line Parameter Switch".
If there is already an existing a section in the forum or support explaining the topic I kindly ask the moderator or administrator to relate the forum entries as applicable.
I include here my post adapting it to the topic describing the specific problem I'm facing hoping someone could help and I'm sure the parameter at startup is very powerful so it would benefit all forum and users.
The post refer to one app to make specific example however the topic applies to all portable application.
Of course each application uses different parameter/switches and the parameters used need to comply with the specific supported parameter set.
I'd like to start WinSCPportable using the portableapps platform link with specific storage settings based on a different portable volume.
Target: I'd like to pass a parameter to WinSCPportable at launch from the portableapps platform
Rationale: I need to store the information on connections (host, user, keys, ports..) in a different location from the application.
the portableapps platform is supporting the parameters in the INI file so I've followed the steps indicated without success.
Would you kindly help me to achieve the target (pass a parameter to WinSCPportable at launch from the portableapps platform) ?
As additional information:
As workaround: I've created a new shortcut with the desired parameter at command line
Launching the shortcut, WinSCP executes with the parameter correctly parsed and WinSCPPortable visualize the information from the selected storage location.
Unfortunately with this workaround I don't use the portableapps platform which I'd like to continue to use.
Steps followed:
1- copy Other\Source\WinSCPPortable.ini to the installation folder (the same folder as WinSCPPortable.exe)
2- open the WinSCPPortable.ini (copied at point1) in text editor
3- edit the AdditionalParameters line as follow:
AdditionalParameters=/ini="T:\winscp.ini"
4- Save file
5- Restart WinSCPPortable
Unfortunately the parameter is not parsed correctly
Is the syntax adopted in the line "AdditionalParameters" at point 3 correct?
AdditionalParameters=/ini=T:\winscp.ini
AdditionalParameters="/ini=T:\winscp.ini"
AdditionalParameters="/ini=T:/winscp.ini"
AdditionalParameters="/ini=T://winscp.ini"
AdditionalParameters=/ini=T://winscp.ini
AdditionalParameters=/ini=T:\winscp.ini
AdditionalParameters=/ini=T:\\winscp.ini
If I change parameter (i.e. "/help") it works showing correctly the help message so it means the file is parsed but it seems there is problem in understandng the "/ini" syntax used?
I hope to have provided detailed information and please let me know if you require any additional information,
Appreciate your help,
Thanks a lot in advance,
kind regards,
Andrea