The registry method has proved problematic. This DOSKEY method seems less error prone since it's evaluated at runtime.