DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Adding "dosearch" result to as a parameter?  (Read 5,474 times)

vitalyb

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 143
    • Plugin Coding Medal
    • Participated in NANY Challenge Once
Adding "dosearch" result to as a parameter?
« on: November 11, 2007, 05:03 PM »
I'd like to do something along the lines of:

1000>>>notepad>->notepad.exe "dosearch C:\"

Well, the syntax is obviously all wrong but basically I want write:

notepad and have the option to select a file, for example c:\a.txt which will execute:

notepad.exe c:\a.txt

How do I do that?

Thanks

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Adding "dosearch" result to as a parameter?
« Reply #1 on: November 11, 2007, 06:37 PM »
create a new alias:
group alias name: notepad
result: C:\WINDOWS\system32\notepad.exe $$1

then you can add +notepad to a farr command to open it in notepad.
for example: .nfo +notepad to open the most important .nfo file with notepad.

Original address: https://www.donationcoder.com/forum/index.php?topic=10786.0