Sunday, November 23, 2008

Command in right-click

To enable Command when right-clicking on a file:

1. Create a new file with the extension (.reg).
2. Copy and paste the code below in it and save the file.

REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\Command] @="" [HKEY_CLASSES_ROOT\Directory\shell\Command\command] @="cmd.exe \\\"%1\\\""

3. Double-click the file, the message "Are you sure you want to add the information [path and name of the file] to registry?" will appear. Choose "Yes".

4. Complete!.

Wordpad in right-click

To enable wordpad when right-clicking on a file:

1. Create a new file with the extension (.reg).
2. Copy and paste the code below in it and save the file.

REGEDIT4
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\Wordpad]
[HKEY_CLASSES_ROOT\*\shell\Wordpad\command]@="Write %1"

3. Double-click the file, the message "Are you sure you want to add the information [path and name of the file] to registry?" will appear. Choose "Yes".

4. Complete!.

Notepad in right-click

To enable Notepad when right-clicking on a file:

1. Create a new file with the extension (.reg).
2. Copy and paste the code below in it and save the file.

REGEDIT4
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\Notepad]
[HKEY_CLASSES_ROOT\*\shell\Notepad\command]@="Notepad %1"

3. Double-click the file, the message "Are you sure you want to add the information [path and name of the file] to registry?" will appear. Choose "Yes".

4. Compelete!.

In/Uninstall dll/activex using right-click

To in/uninstall dlls/activex by right-clicking on the file, do the following:

1. Create a new file with the extension (.reg).
2. Copy and paste the code below in the file and save it.

REGEDIT4
; ActiveX DLLs
[HKEY_CLASSES_ROOT\.dll]@="dllfile"
[HKEY_CLASSES_ROOT\dllfile\shell\regdll]@="Register ActiveX DLL"
[HKEY_CLASSES_ROOT\dllfile\shell\regdll\command]@="regsvr32.exe \"%L\""
[HKEY_CLASSES_ROOT\dllfile\shell\unregdll]@="Unregister ActiveX DLL"
[HKEY_CLASSES_ROOT\dllfile\shell\unregdll\command]@="regsvr32.exe /u \"%L\""
; ActiveX Controls
[HKEY_CLASSES_ROOT\.ocx]@="ocxfile"
[HKEY_CLASSES_ROOT\ocxfile\shell\regocx]@="Register OCX Control"
[HKEY_CLASSES_ROOT\ocxfile\shell\regocx\command]@="regsvr32.exe \"%L\""
[HKEY_CLASSES_ROOT\ocxfile\shell\unregocx]@="Unregister OCX Control"
[HKEY_CLASSES_ROOT\ocxfile\shell\unregocx\command]@="regsvr32.exe /u \"%L\""
; ActiveX EXEs
[HKEY_CLASSES_ROOT\.exe]@="exefile"
[HKEY_CLASSES_ROOT\exefile\shell\regexe]@="Register ActiveX EXE"
[HKEY_CLASSES_ROOT\exefile\shell\regexe\command]@="\"%L\" /regserver"
[HKEY_CLASSES_ROOT\exefile\shell\unregexe]@="Unregister Active EXE"
[HKEY_CLASSES_ROOT\exefile\shell\unregexe\command]@="\"%L\" /unregserver"

3. Double-click on the file and the message "Are you sure you want to add the information in [path and name of the file you created] to the registry?". Choose "Yes".

4. Complete!.

Tuesday, November 18, 2008

[How To] Backup Exchange 2007 on Windows 2008 Server locally with ntbackup

Windows Server Backup in Windows Server 2008 does not support Exchange backup unless you are using smal business server which supoort exchange backup. So to backup exchange on windows 2008 server we need to copy ntbackup files from Windows 2003 server x64.

1. Create a new folder on the 2008 server machine root. Then copy the three files (ntbackup.exe, ntmsapi.dll and vssapi.dll) from 2003 server to the folder created on the 2008 server.

2. Make sure you have "Removable Storage Manager" feature is installed on 2008 server as shown belo:


3. Start ntbackup.exe.

[How To] Install Microsoft Java VM

The following steps to install Microsoft Java VM:

1. Download and install on Java VM based on your Windows:

More links:

www.java-virtual-machine.net
www.alibre.com/support/downloads

To manually uninstall Microsoft Java VM click here

[How To] Manually Uninstall Microsoft Java VM

The following Steps for Manual removal of Microsoft Java Virtual Machine.

1. Go to Start -> Run and paste the following command into the run box:

RunDll32 advpack.dll,LaunchINFSection java.inf,UnInstall

If you are running an older version of the JVM you may need to upgrade to version 3809 or 3810 (windows update) before the above command will work.

You will then be asked if you really want to remove the virtual machine and then reboot. At this point if a message is displayed to the effect of 'removing the jvm will prevent you being able to download files' this refers to files downloaded through java applets rather than regular file downloads.

2. Remove the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\JAVA_VM (Key used for VM entry in IE Advanced Options)

3. Remove the following System Folder and files:

C:\WINDOWS\System32\jview.exe
C:\WINDOWS\System32\wjview.exe
C:\WINDOWS\inf\java.pnf
C:\WINDOWS\java
(C:\Windows represents the drive and path of your windows install, %windir%)

To reinstall Micrsoft Java VM click here