[Fixed] Commands with %S parameter don't work in search...

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

[Fixed] Commands with %S parameter don't work in search...

Post by *icfu »

...results but give "File not found" error.

1. Do an arbitrary search.
2. Select none, one or multiple files.
3. Execute (button, etc...):

Code: Select all

Command: whatever_program.exe
Parameter: %P%S
Edit: As StatusQuo points out below, the bug is only reproducible when start path is empty!

Icfu
Last edited by icfu on 2008-04-24, 17:15 UTC, edited 2 times in total.
This account is for sale
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

I assume you feed the search results to a list box
and then hit your button.
That works fine for me.
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

As far as I tested:
- M$ Notepad: makes a "File not found" dialog box.
- Notepad++: sometimes opens the right files, sometimes not.
- PSPad: always opens the right files.
- TextPad: always opens the right files.
TC for Linux please!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Re: [BUG] Commands with %S parameter don't work in search...

Post by *StatusQuo »

2icfu
icfu wrote:...results but give "File not found" error.
Confirmed, if no start path is specified (no matter what program, *.exe or *.cmd/*.bat).
Entering an additional start path (%P) eliminates the error message here:

Code: Select all

Command: whatever_program.exe
Parameter: %P%S
Start path: %P
Bug or feature?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Entering an additional start path (%P) eliminates the error message here
Confirmed, thanks! :)
Bug or feature?
A bug, if it will be easy to fix, otherwise a feature. ;)

Icfu
This account is for sale
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This doesn't work because %P is empty and %S only contains the pure file name. I will try to find a solution.
Author of Total Commander
https://www.ghisler.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Fixed, thanks!

Icfu
This account is for sale
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for trying it!
Author of Total Commander
https://www.ghisler.com
Post Reply