Linux .bashrc equivalent on windows

In my current project I use Kubernetes & docker tools on Windows  10 . To interact with Kubernetes  and Docker environment typical we use kubectl & Docker command line tools , typing  these commands all day is not fun , so I was searching for solution to create some sort of shorter alias for these commands.

This is easy on Linux with ‘alias‘ command put it into  .bashrc , I was looking for similar solution on Windows . After googling around found that with .cmd file & some registry magic we can do the same.

Here are the steps .

        • Under HKCU\SOFTWARE\Microsoft\Command Processor added  value: AutoRun of type REG_EXPAND_SZ with value %USERPROFILE%\cmdrc.cmd. This is required to persist setting across reboots. reg
        • Created cmdrc.cmd in my userprofile directory.You can access the user profile with %USERPROFILE% environment variable.
        • Added following content in cmdrc.cmd file
          @echo off
          DOSKEY ls=dir
          DOSKEY cd=cd $1$Tdir
          DOSKEY clear=cls
          DOSKEY k8s=kubectl $*
          DOSKEY dk=docker $*

With this setting in place any new command instance will have shorter alias set in cmdrc.cmd


More informaton


Speedy resolution of customer issues using Problem step recorder

Recently I saw a tool ( PSR) in windows 7 which allows customer to report issue/problem using screen capture technology.
This tool by default present in Windows 7 systems. Just type “PSR.exe” from the command prompt to launch this tool.

Using this tool is simple, run this tool and start using the system/application to reproduce the issue.
This tool records all user interaction with the system as screenshots along with the system information.
At the end , tool generates zip file containing all the necessary information.
User can submit zip file to developer for analysis. This allows developer to exactly see what operations user was doing when problem happens.

As this tool captures the screen shots it can be useful for anybody who wants to understand the customer interaction with the
system and to see exactly what customer was doing when problem happens.

Next time somebody tells you that your application is not working, ask them to run this tool and send the information to you.
More information can be found at