Angle Bracket in Command Line Parameter

Discussion and questions - donor version.
Post Reply
Message
Author
hamasaki
Posts: 31
Joined: 10.02.2016, 08:53

Angle Bracket in Command Line Parameter

#1 Post by hamasaki » 25.12.2020, 04:44

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.
Last edited by hamasaki on 28.12.2020, 01:02, edited 1 time in total.

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Angle Bracket in Command Line Parameter

#2 Post by Marek » 27.12.2020, 20:21

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?

hamasaki
Posts: 31
Joined: 10.02.2016, 08:53

Re: Angle Bracket in Command Line Parameter

#3 Post by hamasaki » 28.12.2020, 01:51

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.

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Angle Bracket in Command Line Parameter

#4 Post by Marek » 28.12.2020, 21:00

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.

hamasaki
Posts: 31
Joined: 10.02.2016, 08:53

Re: Angle Bracket in Command Line Parameter

#5 Post by hamasaki » 29.12.2020, 01:49

Perfect, thanks Marek. Works great. :P

hamasaki
Posts: 31
Joined: 10.02.2016, 08:53

Re: Angle Bracket in Command Line Parameter

#6 Post by hamasaki » 11.08.2021, 19:44

Hi Marek,

This no longer works, did something break?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 31 guests