May 20, 2016

creating a link in windows for a directory

The apache cxf maven plugin does not completely honor the maven structure for generated sources.

Netbeans gives a hint in the project properties that generated sources should be placed under


The cxf-codegen-plugin places the sources for the customer projecct under generated and therefore
netbeans shows errors in the code.

Now windows also has the functionality to create links, but the command is only in cmd.exe and not
in the powershell.


mklink /J cxf ..\generated\cxf

My source for the mklink is from here.
In a cmd.exe does the trick and netbeans doesn't show any errors in the source code.

How to get the focus into a window without raising it into the front on windows 8

On my linux Gnome-Desktop I had the focus moving with the mouse ( no clicking ) and also not
raising the window.

E.g. you have a console in the background  and a window in front and just to type something in
the console without raising it was a simple example I used often.

There is a trick for windows, with some registry editing:

see here:

May 18, 2016

Accessing the Registry from the Powershell

With powershell it is possible to access the window registry directly from the commandline
with the default commands:


PS C:\Users\eer> cd HKLM:


Name                           Property
----                           --------
7-Zip                          Path : C:\Program Files\7-Zip\

setting environment variables in a powershell session

The powershell is the new replacement for cmd.exe.

To set variables you have multiple options:

setting the variable ew:

 Set-Item env:ew 'hallo'

or to set in an other way:

PS C:\Users\eer> $env:ANDROID_HOME='C:\DevTools\Android\sdk'
PS C:\Users\eer> $env:target='ewald'

May 13, 2016

executing a sql file in the local DB2-Database on Windows

First you have to start the DB2-Commandshell by executing db2cmd.exe from the BIN-Directory of the DB2-Installation.

In the DB2 Command shell connect first to the database: e.g

db2 connect to <database> USER <username>

db2 -tvmf <sql-File>

May 12, 2016

Changing the font size in ConEmu with -

ConEmu is a multiconsole window similar to tmux or screen.

It is very easy to in/decrease the font size of a command window, by just doing a
<ctrl>-<mouse-scroll> in any direction.

let windows 8 automatically show the desktop instead of the tiles

Right-Click on the taskbar and select the properties.

Select the options as you like. "When I sign in or close all apps on a scren, go to the desktop instead of Start" is the main option.

Now you always have the desktop.

How to shut down the maschine.

Press <windows>-x to get the menus.

May 11, 2016

How to follow a log file on windows? On all *nix-systems I just used tail

To follow a log file which is continuously updating you just use tail on any *nix-system.

But now I have to use Windows and what to do here. A nice colleague ( Wolfgang ) has already found such a tool. It's called SnakeTail.

You just open the log files and it is doing like tail to update the view by itself.

(an other log file explorer is glogg - ) .

language checking in skype, when you use different languages

Now I'm using a German keyboard, but write English text in Skype. So Skype checks what I
type and does a lot of corrections ( in the German sense ).

You can change this only by changing the whole windows settings.
Here is the link with the whole conversation about this.

The solving hint was this answer:

I had same problem.
Just set up 3 different keyboard, go control panel -> language (i use view by small icons) -> add language -> find your language -> then option on that language -> there click "add an input method" and choose your native keyboard layout (don't forgot remove native layout for that language  ).That's it. You can change language correction just by hitting win key + spacebar and autocorrection will change but your native layout will stay ^_^
enjoy the day!

May 10, 2016

quicktext addon doesn't work anymore with thunderbird 45

The quicktext addon doesn't work anymore with thunderbird 45.

The problem is discussed here. And somewhere in the discussions is a link to a patche xpi file
which solved for me the quicktext-addon-problem and it is now working again.

run a program as a different user in windows 8

I need to run an execueable as a different local user on windows 8.

The tip was found here.

start gpedit.msc and search for User Configuration\Administrative Templates\Start Menu and Taskbar. 

Here lookup Show “Run as different user” and enable it. 

After this start "gpupdate /force".

Now by pressing <shift> and rightclick on the executable you get an additional context entry to run as a 
different user. 

Lookup the user and insert it with <local domain>\<username> and the password. 

May 8, 2016

UnixTools under Windows as native executeables.

Since I'm forced to use windows now instead of a linux/unix system :-(
I'm in the process of getting a suitable working environment.

My shell of usage on windows will be the powershell for now. It's is different to a unix shell,
but has a command line interface to many windows functions like service management and so on.

The powershell also aliases some commands to get the same commands as on linux, but the options
sometime differ and some commands are simply missing ( e.g. grep )

There is a project on sourceforge name UnxUtils. This project ports a bunch of utilities to windows
without an emulation layer around.

Just install the tools and set the PATH environment to


The problem is now, that powershell aliases some commands. An
ls -altr 

does not work. You have to remove the aliases:

remove-item alias:rm alias:ls

and you have a go.

May 7, 2016

switching between tabs in explorer++

explorer++ is an alternative file explorer for windows.

It allows to open multiple tabs of different directories in one window.

To switch between the tabs by keyboard use <ctrl>-<tab> or <ctrl>-<Shift>-<tab>.

May 6, 2016

ConEmu on Windows to have multiple shells in one window.

The ConEmu allows you to have one window with multiple shells open, even different shells, which
are configureable: 

You can switch between the shells with <windows>-<1...9>

executing a command in powershell, where the path comes from an environment variable

The environment can be accessed in the powershell with the $env command:

PS C:\dev\Tools> $env:JAVA_HOME

To execute a java with the JAVA_HOME you use "&" to start an external command in the 

PS C:\dev\Tools> &$($env:JAVA_HOME + "\bin\java") -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 7.1.012)
SAP Java Server VM (build 7.1.012 23.5-b11, Aug  8 2013 23:45:34 - 71_REL - optU - windows amd64 - 6 - bas2:201691 (mixed mode))

getting a process and stopping a process in powershell

The powershell allows you to manage processes in windows. Here is the list of available commands:

PS C:\dev\Tools> Get-Command | Select-String Process


PS C:\dev\Tools> Get-Process java

Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName
-------  ------    -----      ----- -----   ------     -- -----------
   8742     319  -361604   -1245240 -1586 1 088,91  11780 java

shows you all running java processes

stop-process 11780

will terminate the process.

starting/stopping a service in windows with the powershell

The powershell is a very good replacment of the cmd.exe. It has a bunch of new functions:

To manage services running on windows, you have to start powershell as administrator.


lists all availalable services.

PS C:\dev\Tools> Get-Service *oracle*

Status   Name               DisplayName
------   ----               -----------
Stopped  OracleJobSchedu... OracleJobSchedulerXE
Stopped  OracleMTSRecove... OracleMTSRecoveryService
Running  OracleServiceXE    OracleServiceXE
Stopped  OracleXEClrAgent   OracleXEClrAgent

Running  OracleXETNSList... OracleXETNSListener

shows all services with this name.

start-service/stop-service will help you in managing this services.

stop-service OracleServiceXE

will just stop the database :-)

There are also some other commands:

PS C:\dev\Tools> Get-Command | Select-String Service