Can an argument be passed to a prgm on Button Bar?

Support for PocketPC and WinCE version

Moderators: white, Hacker, petermad, Stefan2

Post Reply
skeys
Junior Member
Junior Member
Posts: 6
Joined: 2003-02-20, 00:22 UTC

Can an argument be passed to a prgm on Button Bar?

Post by *skeys »

I have added a few common applications to the button bar. However, execution of any of those apps (eg: pword, pxl, iexplorer) will launch the app but not load the highlighted file.

Do I need to add an argument to the command line of such apps on the button bar?

If so, what would such an argument be (eg: %1)?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, and it's even described in the help. :)

Parameter: Parameter(s) passed to the program. Supports the following parameters:
%p Source path
%n Source file name
%t Target path
%m Target file name
? as first item: Show confirmation dialog

So you need to use %p%n
Author of Total Commander
https://www.ghisler.com
skeys
Junior Member
Junior Member
Posts: 6
Joined: 2003-02-20, 00:22 UTC

Post by *skeys »

Your instructions work perfectly.

Thanks :D
ppc
Junior Member
Junior Member
Posts: 3
Joined: 2003-03-24, 20:19 UTC

Post by *ppc »

What help file?

[quote="ghisler(Author)"]Yes, and it's even described in the help. :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

What help file?
Just choose 'Help' from the 'Start menu' of your PocketPC or click the '?' button on a handheld PC to open the TC/CE help file!
Author of Total Commander
https://www.ghisler.com
ppc
Junior Member
Junior Member
Posts: 3
Joined: 2003-03-24, 20:19 UTC

Post by *ppc »

Yeah, I eventually found it...
ghisler(Author) wrote:
What help file?
Just choose 'Help' from the 'Start menu' of your PocketPC or click the '?' button on a handheld PC to open the TC/CE help file!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

How do other programs solve this? Should I add a 'Help' menu item to one of the main menus?
Author of Total Commander
https://www.ghisler.com
skeys
Junior Member
Junior Member
Posts: 6
Joined: 2003-02-20, 00:22 UTC

Help on menu

Post by *skeys »

I would prefer to see "Help" as an item on the "File" menu. Further, it is customary that "Exit" be at the bottom of the menu. As such, I suggest the "File" menu read:

------------
- Properties
... etc ...
- Find files
------------
- Reload dir
- Help
- Exit
------------
Post Reply