ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Execute a command line rather than just a program

(1/1)

pmoore:
For some uses, I'd like to be able to use FARR as a replacement for the Windows Run box (or Bayden SlickRun, or similar programs). In that situation, I want to be able to type a full command line, not just a program name. Two examples:

* putty username@servername
* gvim some.file.name
I know about the ++ syntax to add command line arguments, but in this case I don't want to have to type anything but the command line as it stands - my muscle memory is used to typing "putty xxx@yyy", so I want to stick with that. One option would be to have an alias executing "cmd ++ /c $$1" but (a) these are not console commands, so I'd rather avoid using the console, and (b) I can't get this to work anyway :-[

Is there a way of simply passing a command direct to Windows CreateProcess()? [For bonus points, if I could specify the working directory to use, that would be even better!] I'm pretty sure I could do this by writing a plugin - but do I need to?

Thanks,
Paul.

mouser:
You should be able to launch any command that you can normally run on the commandline by using the alias: run

So just type:
run putty username@servername
run gvim some.file.name

Now as for specifying working directory.. i'm afraid there is no easy way to do this currently, though it's not a bad idea and i could add it pretty easily.

you could also probably find a commandline tool that takes another commandline to run and a working directory and executes it; if you did find such a tool you could easily make your own run-like alias to do what you want.  let me know if you find an existing solution otherwise i might add it.

Stoic Joker:
@pmoore - Sorry about the off topic ... But I just noticed you Hong Kong Phooey avatar. I used to love that show!

Carry on...
 :)

skwire:
But I just noticed you Hong Kong Phooey avatar. I used to love that show!-Stoic Joker (June 13, 2011, 06:40 PM)
--- End quote ---

Likewise.  =] 

Navigation

[0] Message Index

Go to full version