Windows 7: pinning Cygwin on the taskbar

I need to have cygwin on my taskbar so that I can use it. This was not a big deal in windows XP, but for some reason windows 7 doesn't like adding it. Without having it on the taskbar, it makes it harder to use it, and then I stop using git as often as I used to use it.

But I found an easy way around to add it to the taskbar.

1. Make a shortcut of cmd.exe, found at C:\Windows\System32. It will tell you you can't make a shortcut on the folder, but if you want one on the desktop. Say yes.

2. Drag this shortcut into the taskbar. It will stick.

3. Right click on the new cmd.exe icon on the taskbar. A menu will pop up. Then right click on the cmd.exe shortcut, and click Properties.

4. Now find where Cygwin.bat is located. Get the path, and replace the contents of the Target field with it.

And you are done. Now when you click on the icon, the cygwin shell will run.