Page 1 of 1

Angle Bracket in Command Line Parameter

Posted: 25.12.2020, 04:44
by hamasaki
Hello,

I'm trying to set up a toolbar item that has the following as the command line parameter:

Code: Select all

/A * %RightDir% > C:\Users\User\Desktop\list.csv
If I run it in the powershell it works fine and the output is written to the file, but in Free Commander it gives a invalid parameter error, I assume because of the bracket. I've tried enclosing the bracket in single and double quotes and escaping the bracket, but none of these work.

Code: Select all

/A * %RightDir% '>' C:\Users\David\Desktop\list.csv
/A * %RightDir% ">" C:\Users\David\Desktop\list.csv
/A * %RightDir% \> C:\Users\David\Desktop\list.csv
Is it possible for this to work in FC?

Thank you and Merry Christmas.

Re: Angle Bracket in Command Line Parameter

Posted: 27.12.2020, 20:21
by Marek
Could you provide more info?
I think you have defined "Favorite tool" item https://freecommander.com/fchelpxe/en/D ... lbars.html
What have you defined for the fields: Program, Start folder, Parameters?

Re: Angle Bracket in Command Line Parameter

Posted: 28.12.2020, 01:51
by hamasaki
Hi Marek,

Thanks for the help.

Yes, a favourite tool. The command line parameter is as I posted in the first message. Here is a screenshot:

Image

FileList is a CMD tool. If you need to test, you can get it here, it's free:
https://www.jam-software.com/filelist

Thank you.

Re: Angle Bracket in Command Line Parameter

Posted: 28.12.2020, 21:00
by Marek
DOS (CMD) program can not be started this way.

First define the BAT file for starting, e.g. FileList.bat

Code: Select all

d:\Tools\FileList\FileList.exe /A * %1 > C:\aa\list.csv
Now define favorite tool as:
Name: FileList
Program or folder: D:\Tools\FileList\FileList.bat
Parameter: %RightDir%

Use your paths.

Re: Angle Bracket in Command Line Parameter

Posted: 29.12.2020, 01:49
by hamasaki
Perfect, thanks Marek. Works great. :P

Re: Angle Bracket in Command Line Parameter

Posted: 11.08.2021, 19:44
by hamasaki
Hi Marek,

This no longer works, did something break?