How to add SublimTex context menu to open file in Windows

SublimText editor is one of the coolest code editor I found, it is Mac favorite. When we install the software it as let us choose open with option, which let us open file with Sublim. How to configure this manually?

I found VS Code already included to the context menu. Let’s add the option to context menu using Windows Registry. (What is a Registry ? It keep track all the members(apps,settings etc) of the Windows).

This involves following step

  • Open Windows Registry
  • Find *\shell
  • Create new Key,value

Create New Keys,Value

Login as Admin and open Run dialog using Windows + R . Enter regedit in the Run windows. We have to find the */Shell key. The easiest way to do is type the following lines below the File menu.


Under the shell we have to create one new key and value with a command sub key as follows.

Open with Sublime Text
  • Create another Key under the Sublim Tex as command
  • Modify the command default value on the right panel as C:\Program Files\Sublime Text 3\sublime_text.exe “%1”

Now you can open a file in Sublim using the context menu.

* Please do all these with care. Don’t attempt to change any system related entries


‘Django’ was one of the popular Python framework, which can be used to create beautiful dynamic website from scratch. Write less and do more that is the frameworks mean to. You don’t need to start from the beginning, Django will take care of that.

How to get my copy of Django?

Well, it is a free framework free of cost, you can download and use Django 1.6.5 or later along with Python 3.3 or prior version on Windows/Linux/Mac or on almost any Computer OS.

Installing Django on Windows 7 and later

Make sure that you have latest Python version installed on your computer. You can download it from Extract the Django .Zip/.tar file, using Winzip or 7zip (preferably C:/, root directory).
Setting Python paths on windows will let you run it from any drive, learn how to.
Let’s install the Django, issue the following command using Power Shell or command prompt (Run->PowerShell).

C:/> CD django1.6.5
C:/>django1.6.5> Python install

And it will run the python script for installation. All file required will be automatically copied to the Python Lib\site-package folder securely. After the process you can safely delete the extracted folder from the C:\ drive.

Installing Django on Linux

On Linux you have prebuilt Python on it, so no need to install it separately. Just extract Django .tar file and run the setup script.
Verifying the Django installation

Run the following on Python prompt

>>> import django
>>> print (django.get_version())

Will result in displaying the current version as (if everything went right)

That’s all

How to use common folder paths in C#

Reading files from application path may be one of key requirement of any application. Actually we can place many place you love to have, on a installation machine there can be restriction as well.

Like wise in a Windows system, installer may want to put apps and other files to Programfiles. This folder intended to work with executable,configuration files etc. You can’t programmatically create new folder or files in Programfiles folder, which may require some admin rights. So where we kept those documents and other data ?

It is wise to store such files on Application data folder or even on your Document folder. For reports and other stuffs Document folder is enough.

Access Special Folders

We can use the Enironment.SpecialFolder to access the App data and Documents and also can fetch path to those folders using GetFolderPath method of Environment class.

datapath = Environment.GetFolderPath(Environment.SpecialFolder
reportPath = Environment.GetFolderPath(Environment.

the first line will get the location of C:\Users\manoj\AppData\Roaming and the second will show the Document folder path .

Access application path

How to access application/executable path in C#. This can be done using Application.ExecutablePath and the GetFolderPath method


Default Printer Fix on Windows

There will be occasions when you can’t set the printer as default in Windows OSs. This will require some registry fix as we know. The MPrinter Utility will help you to the solve the issue with a single click.

Printer Utility

You can look at my portfolio project for source and the installation package

Remove OEM Recovery Drive letter in Windows 10

Branded PC like HP/Lenovo used to set recovery partition[Windows 10/7], probably with drive letter D/E/F etc. Sometimes there are applications which always work with specific drives. In such cases when you try to change OEM partition, the effort may fail.

 OEM partition is designed for system recovery or factory restore. It allows users to easily and quickly restore the system to the original state when system failure or system crash occurs

I personally suggest removing the drive letter from the OEM part, this becomes another troublesome job indeed. With DiskPart command you can remove drive letter of volumes.


Enter cmd command(Window + R) and Run button

Type diskpart on your command prompt

Type List Volume

Choose the OEM voliume with select Volume [volume#]

Execute Remove letter [Drive Letter]

If you are too lucky the OEM drive will disappear from My computer/My Pc. and the drive letter is available for use.


How to change default storage in Windows 10

By default Windows 10 will store your Documents/Pictures /Music /Video on default drive, that user/libraries. Usually it will be on Windows’s installation drive, C:\.

But Windows 10 let you move the storage location in a new desired drive.

For changing the default location of the new Documents you will create in future, go to Start- Settings – System – Storage and change the Document drive C to a desired drive.

Windows will automatically create a user folder with document sub folder for keeping your new documents.
Next time you hit Ctrl + S / Save button on MS Word it will automatically locate the new Document folder.

Keep it simple and clean

Mount disk image in Windows 10 without third party tool or disc

Most of the installation software come with ISO disk image which you need to burn into a disc (CD/DVD) or USB ,then use the disk to install them using the media.
But Windows 10 has a different option to do the installation directly from the Disk Image using the Disk Image Tool.

When user right the click the Disk Image (Disk Image Tool), Microsoft Windows let user choose the Mount command and will bring the setup directory. So you can easily run the setup and install the software without a media or burning software.

Thank you  Microsoft

How to Map Network Drive on Windows 10

Map Network Drive allow computer to access user shared drive in a network. Users can easily access the program and files and execute simultaneously on server as well as clients. As in the Windows XP/Windows 7/Windows 8 and 8.1, the newest addition to Microsoft OS array, Windows 10 also support this feature.

Let’s learn how to map a drive in Windows.

Turn the network Discovery on   

First up all, in order to get access to the networked system, you need to turn on the network discovery. This can be done by changing  Advanced Sharing Settings. Go to Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings  and tun on Network Discovery, so that the network can be easily identified.

Share the Drive on Server

Make sure your Server admin share the Drive with appropriate privileges.

Set up the derive letter

Suppose you need to Map Drive letter ‘E:’ from the server, make sure that you don’t have a drive with that name. If you had one please change the drive letter using the Mange tool. 
The Manage utility can be accessed by Right click My Computer/My PC and access Manage command. Then go to the Disk Management, right click the drive you want to change the letter, choose Change Drive letter and Path
*Even if it is a DVD drive letter you need to change it for mapping.

Mapping the Network drive

Now we are ready for Mapping the Network Drive. Right click the network or My PC/My computer and choose Map Network Drive command.
Choose The drive letter and Choose the same drive letter from the server and click OK. 
Every time when your network is available the drive will work as regular local drive and the program can also accessible to other mapped systems on the network. 

How to quickly turn off Firewall in Window 10

Some times we need to turn on or off Windows Firewall on Microsoft Windows 10 OS, this can be usually done by accessing the control panel. In an urgent situation where you need to perform action in thunderbolt way ,you can follow this…

  1. Go to the Run dialog or simply press Windows + R. 
  2. Type msconfig  and hit enter

This will bring the Windows   System Configuration dialog box. Move to the Services Tab and access the Windows Firewall which can be found at middle of the list, just do what you want and hit the OK button one more time.

The trick is also applicable to Windows 8 ,Windows 8.1 and Windows 7 versions too 
That is it.