IDEA: External Tools as a Run Configuration?

Try the Run Configuration For External Tools-plugin.

RunPopup.png

The idea of an empty run configuration type is also provided by Batch Scripts Support– or BashSupport-plugin. So if you already use one of the bash plugins, you do not need my plugin.

Advertisements

[Quicktip] Totalcommander, batch-files and foreach

You want to call a cmdline-tool, but this tool only supports only one file per invocation? But you have to process hundreds of files? With the following approach (in combination with the Totalcommander) you can select many files and handle each file sequentially.

Setup:

  1. create a batchfile named foreach.bat
    @echo off
    REM call it via 'foreach.bat filewithfilenames'
    
    SET filewithfilenames=%1
    
    for /f %%f IN (%filewithfilenames%) do (
        REM insert your code here, the current iteration item is %%f
        echo %%f
    )
    
  2. create a startermenu entry in totalcommander
    • name: foreach...
    • command: foreach.bat
    • parameter: %L

Usage:

  • mark all files to be adressed in Totalcommander
  • call the newly created startermenu entry “foreach...

Explanation:
When calling the startermenu-entry the Totalcommander will save the filenames of the selected files in a temp-file and will provide the filename of the temp-file as parameter. That is the magic of the parameter %L. (Perhaps such a scheme is also available in Speedcommander, Freecommander and other tools like that?! I do not know…)

Now this temp-file can easily be read using a special syntax of the “for-loop” of the Windows command line (cmd).  Type in "for /?" in your cmdline for more details on this syntax and see the example above (<code>%%f</code> in line 6).

[Quicktip] faster usage of FreeMind

FreeMind (an open-source mindmapping tool) has some handy features, which may also improve your productivity:

  • Shortcuts: Use the shortcuts like ENTER and INSERT and navigate via the ARROW keys!
  • Creating subnodes from your clipboard: If there are several lines of text in the clipboard and you paste its content into FreeMind while a node is selected, then several subnodes will be created. That is really cool and i discovered it by accident!

FreeMind can be downloaded from http://freemind.sourceforge.net/

Acronis True Image for “free”?

If you have a Western Digital harddrive installed in your computer you can use a special version of “Acronis True Image“. This version is locked to WDC drives, but it works fine and its free.
You can download it here.

I read about other special version from other harddrive vendors (f.e. Seagate?). Keep an eye open!