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

Lunch DOS commands directly

(1/1)

craziedde:
Good morning,

How to launch DOS commands directly from FARR?
Example: shutdown /l

mouser:
This isn't exactly what you were asking, but the nircmd alias is a great one for things like shutting down pc and other system functions:
https://www.donationcoder.com/forum/index.php?topic=9365

In general you can put any dos commands in a .bat file and put that batch file someplace that FARR can find it and launch it.

craziedde:
This isn't exactly what you were asking, but the nircmd alias is a great one for things like shutting down pc and other system functions:
https://www.donationcoder.com/forum/index.php?topic=9365
-mouser (September 20, 2015, 07:12 AM)
--- End quote ---
while "nircmd" is interesting it's less powerful then "cmd"

In general, you can put any dos commands in a .bat file and put that batch file someplace that FARR can find it and launch it.

--- End quote ---
This is also a viable option, but yet defeats this particular purpose → "quick and dirty" command run at any time.

In fact, if "shell runned commands" were runned in current directory this would make it even sweater :)

skajfes:
There is an option for that in FARR.
Go to options -> Launching files. At the bottom, there is a Misc section, enter shellexec $$1 and you're good to go.
Screenshot

You then just type in your command in farr and press enter. The trick is that if there is no results FARR will launch the search string using cmd.

Usually when you type in a shell command with parameters etc it will not match any documents so you're good to go. For example ping google.com, shutdown /l etc

If you execute commands that match some files you can use an alias. For example, create an alias with regular expression ^cn (.*) and result shellexec $$1, then you type in cn <your command with arguments> and it should execute.

craziedde:
There is an option for that in FARR.
Go to options -> Launching files. At the bottom, there is a Misc section, enter shellexec $$1 and you're good to go.
Screenshot

You then just type in your command in farr and press enter. The trick is that if there is no results FARR will launch the search string using cmd.

Usually when you type in a shell command with parameters etc it will not match any documents so you're good to go. For example ping google.com, shutdown /l etc
-skajfes (September 21, 2015, 02:54 AM)
--- End quote ---
This option was a little unpredictable as was picking up other programs


If you execute commands that match some files you can use an alias. For example, create an alias with regular expression ^cn (.*) and result shellexec $$1, then you type in cn <your command with arguments> and it should execute.

--- End quote ---

Yes, this option worked for me, with a little option. Thank you
Lunch DOS commands directly

Navigation

[0] Message Index

Go to full version