(solved) Need help with source path as parameter input
Moderators: white, Hacker, petermad, Stefan2
(solved) Need help with source path as parameter input
Hi, everyone
Hopefully someone can help
I'm trying to create a shortcut button for CSearcher with detailed setting:
Command: D:\Programs\CSearcher\CSearcher.exe
Parameters: %P
Start path: <empty>
Icon file: D:\Programs\CSearcher\CSearcher.exe
Icon: 0
Tooltip: CSearcher
If I use it with source path that contains white space, search folder(s) keeps empty. If I use %P%S as parameters. it works fine with selected folder(s) as input. What should I do so it could work with source path as input?
Thanks. Regards. :)
Hopefully someone can help
I'm trying to create a shortcut button for CSearcher with detailed setting:
Command: D:\Programs\CSearcher\CSearcher.exe
Parameters: %P
Start path: <empty>
Icon file: D:\Programs\CSearcher\CSearcher.exe
Icon: 0
Tooltip: CSearcher
If I use it with source path that contains white space, search folder(s) keeps empty. If I use %P%S as parameters. it works fine with selected folder(s) as input. What should I do so it could work with source path as input?
Thanks. Regards. :)
Last edited by rachman on 2017-05-29, 15:53 UTC, edited 1 time in total.
Try:
Parameters: "%P"
Parameters: "%P"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
I'm sorry that I forget about it
Image: http://i.imgur.com/8Vs5Zme.png
Image: http://i.imgur.com/8Vs5Zme.png
It is not listed in help, it is just a trick. A dot is a pseudo-item that points to current directory (just as two dots point to upper directory) so d:\Programs\My folder and d:\Programs\My folder\. mean the same directory (though paths with such extra dots may look not very nice).rachman wrote:Anyway thank you guys. by using "%P.", now it works.
I didn't see that in help (probably I missed it). regards.
BTW you can also try using "%P" in order to escape a backslash from %P... Unfortunately stupid CRT solutions like using backslash as an escape character require such ugly workarounds.