XCmd v0.43 (command-line tool and custom command launcher)
This is very powerful Docklet, if you know how to use it.
How does the XCmd-Docklet work?
After clicking the docklet, a small Edit-field appears. Here you can Enter a command and submit the
command by either hit the [Enter]-Key (the
Primary-Function) or hold [Ctrl] and hit the [Enter]-Key (the
Secondary-Function).
The way, the command is handled is highly customizable and depends on the XCmd-Settings.
In the XCmd-Settings you can customize the two Functions, Primary and Secondary.
The default functions are:
Primary: run the command ($$). Examples:
- Type "regedit" hit [Enter] -> The Registry Editor opens
- Type "explorer" hit [Enter] -> a new Windows-Explorer opens.
Limitations: The Primary-Function onyl "finds" commands, which are in a folder, which is in the PATH Enviroments. So some commands (like "msconfig") can not be found, currently. I'm working on this.
Secondary (cmd /K $$): Open a Command-Line, and execute the command inside it. Examples:
- Type "ping 127.0.0.1" hit [Ctrl+Enter] -> a Command-Line Window opens, the ping command is executed. After ping is finished, the Command-Line stays open.
- Type "D:" hit [Ctrl+Enter] -> You get a Command-Line Window with D: as root Directory.
Customize the functions:
In the Settings-Window, you can customize Primary and/or Secondary Function.
In the Edit-field, you can enter a custom program, which is executed. You have to use "$$" as a placeholder for the command.
A usual command would be:
["C:PathToProgram.exe" $$] which would run Program.exe with your command as a Parameter. This is very powerful, because its a interface to any program with command-line-parameters.
Only two Examples:
Set as Primary Function: ["C:Program FilesMozilla Firefoxfirefox.exe" /URL
http://www.google.de/search?q=$$&as_qdr=d]
-Type "XWinDock", hit [Enter]
This would start Firefox and open instantly the URL
http://www.google.de/search?q=XWinDock&as_qdr=d
This URL performs a search on Google with the searchterm "XWindDock" and limited to results from the last 24h.
I guess, one of the most interessting function is the interface to your Desktop Search Engine, for Example Windows Desktop Search:
Set as Primary Function: ["C:Program FilesWindows Desktop Searchwindowssearch.exe" /URL search-ms://query=$$]
-Type "Something", hit [Enter]
This would open the WDS - Main Window and instantly executes a search for "Something". It's just like the "Windows Search-Deskbar" in the taskbar, only without suggestions and results-preview.
More Function can be found in the Function-List below.
Installation:
-on update: Delete old /XWindowsDock/Docklets/XCmd/ - Folder
-Extract all the contents to the /XWindowsDock/Docklets/ - Folder.
Command-List:
(You have to include the Filename into " ", if it contains spaces!)
1. [$$] (default)
- Run the command just like when it is typed in Windows "Run"-Dialog
2. [cmd /K $$] (default)
- Opens the Command Line and executes your command in it.
3. ["C:Program FilesWindows Desktop Searchwindowssearch.exe" /URL search-ms://query=$$]
- Performance a search for your command in Windows Desktop Search.
4. ["C:Program FilesMozilla Firefoxfirefox.exe" /URL
http://www.google.de/search?q=$$]
- Opens Firefox and performance a search for your command in Google.
5. ["C:Program FilesConsole2Console.exe" -r "/k $$"]
- Opens the
famous Open Source Console - Program and runs the command in it.
Please share your command, if you find an interesting one!