topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 5, 2020, 6:16 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Drag&Drop towards a FARR result to open with %1 argument  (Read 378 times)

Filipe Meira Castro

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • View Profile
    • Donate to Member
Drag&Drop towards a FARR result to open with %1 argument
« on: November 16, 2020, 04:47 AM »
Hello,

I have a batchfile that requires a %1 argument.

When searching for this batchfile, I would like to be able to drag&drop into this FARR result to open an application with added %1 argument.

Alternatively, does any know of a small "drag & drop" executable that would just open a bank window for dropping, and that after dropping would close and provide the dropped link as an command line variable? With that variable, I would then pass it to the batch file!

Interesting?! ;)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,102
    • View Profile
    • Donate to Member
Re: Drag&Drop towards a FARR result to open with %1 argument
« Reply #1 on: November 16, 2020, 10:30 AM »
Is it only one batchfile in a fixed location? In that case, how about an alias for that batchfile, with the path to another file as command line parameter. You type the start of the alias in FARR and then drag and drop the file you want as parameter in the FARR searchbox. Its path will then be added to the FARR searchbox. You next press enter to trigger to alias action. Would look something like this:

https://i.imgur.com/mJgfeP1.mp4

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 469
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: Drag&Drop towards a FARR result to open with %1 argument
« Reply #2 on: November 16, 2020, 10:46 AM »
I have a little program called ReRun whose only job is to launch another program that has no way to specify parameters.
https://www.dcmember...oder/download/rerun/


Filipe Meira Castro

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • View Profile
    • Donate to Member
Re: Drag&Drop towards a FARR result to open with %1 argument
« Reply #3 on: November 17, 2020, 03:53 AM »
Thanks for input @Nod5, @BGM, looks great  :Thmbsup:

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 469
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: Drag&Drop towards a FARR result to open with %1 argument
« Reply #4 on: November 17, 2020, 08:36 AM »
Wow, rereading my description, I say the same thing over and over...  like  a rerun!  hahhahahahahha!

I write most of my programs in autohotkey, but that one I wrote in BCX (compiles as pure C) so it's super-tiny, but I think it's only 32bit.