I followed the solution of Ricky by running the script on the mentioned url.
It worsen my case. In fact, when I clicked any drive, it presented me the
format dialogue box for the drive. Then I added myself the filetype command
to drive as .....explorer.exe %1. That gave me the drive open in a new
windows, in spite of the fact that I had set the folder option to open in the
same windows.
I ran the script again and it changed everything in such a way that
everytime I open a folder or a drive, it opened the command prompt.
Finally, I again set the command to .... explorer.exe %1. Still the folders
open in a new windows. I am in bad need to rectify this. Please help.
The script on the webpage is
Set WshShell = WScript.CreateObject("WScript.Shell")
p1 = "HKEY_CLASSES_ROOT\Directory\shell\"
p2 = "none"
WshShell.RegWrite p1, p2
p1 = "HKEY_CLASSES_ROOT\Drive\shell\"
WshShell.RegWrite p1, p2
X = WshShell.Run("REGSVR32 /I /S SHELL32.DLL",4,True)
Set WshShell = Nothing
MyBox = MsgBox("Folders will now Open when double clicked", 4096, "Finished!")
Dinesh