Skip to content


How to remove MSN messenger completely from Windows

Posted in Technology.

Remove MSN Messenger…

Are you tired of seeing MSN Messenger pop up on your Windows XP system? As usual, in an effort to continue its course towards domination of everything, Microsoft has made it difficult to remove. But it is possible! The following method works in Windows XP Professional, but has not been tested on a system with SP1 installed. FYI, I’ve seen scripts that are similar to this, but fail miserably, automatically deleting other much-needed components! Better to do this slow and manually! As always, I am not responsible for the use or the misuse of this information; use at your own risk.

  1. Exit MSN Messenger by right-clicking the MSN icon in the notification area, and selecting Exit.
  2. Add the following registry entries, both with a DWORD value of 1:
    1. HKEY_LOCAL_MACHINESoftwarePoliciesMicrosoftMessengerClientPreventRun
    2. HKEY_LOCAL_MACHINESoftwarePoliciesMicrosoftMessengerClientPreventAutoRun
  3. Open a command prompt by clicking Start/Run, then typing “command” and clicking OK.
  4. Uninstall MSN Messenger by typing “rundll32 advpack.dll,LaunchINFSection %systemRoot%INFmsmsgs.inf,BLC.Remove”
  5. Uninstall the leftover installation information file by typing “rundll32 setupapi,InstallHinfSection BLC.Remove 128 %systemRoot%INFmsmsgs.inf”
  6. Allow MSN Messenger to be displayed in the Add/Remove Windows Components dialog in the future (if it pops up again!) by typing “notepad.exe %systemRoot%INFsysoc.inf” and deleting the word “hide” from the line that starts with “msmsgs=”. It MAY be possible to skip to this step directly and perform the uninstallation directly from the Add/Remove Windows Components dialog, but that method MAY leave unwanted components and has not been thoroughly tested.
  7. Cross your fingers and reboot! You will probably get a message asking you to confirm the removal of some leftover files. Click OK.

OR the same thing can be done as following
Open notepad and paste following content and save the file as _remove.vbs. After creation, double click the file and say yes on option alert box.

Option Explicit
On Error Resume Next

‘Dimension variables
Dim WSHShell, MyBox, p1, q1, rcmd
Dim jobfunc

‘Set the Windows Script Host Shell and assign values to variables
Set WSHShell = WScript.CreateObject(“WScript.Shell”)
p1 = “HKEY_LOCAL_MACHINESoftwareMicrosoftOutlook ExpressHide Messenger”
q1 = 2
rcmd = “RunDll32 advpack.dll,LaunchINFSection %windir%infmsmsgs.inf,BLC.Remove”

‘Create or change the Hide Messenger value
WSHShell.RegWrite p1, q1

‘Run the uninstall command
WshShell.Run(rcmd)


How to switch back to win2000 style search in WinXP

Posted in Technology.

Open notepad and paste following content and save the file as XPSearch.reg. After creation, double click the file and say yes on option alert box.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerCabinetState]
“Settings”=hex:0c,00,02,00,1b,01,e7,77,60,00,00,00
“FullPath”=dword:00000001
“FullPathAddress”=dword:00000001
“Use Search Asst”=”no”


How to reset “View source” application in internet explorer back to notepad

Posted in Technology.

Open notepad and paste following content and save the file as resetIEViewSource.reg. After creation, double click the file and say yes on option alert box.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerView Source EditorEditor Name]
@=”C:\\Windows\\notepad”


How to enable File Name completion on command prompt

Posted in Technology.

Open notepad and paste following content and save the file as cmdComplete.reg. After creation, double click the file and say yes on option alert box.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSoftwareMicrosoftCommand Processor]
“CompletionChar”=dword:00000009


Add “command prompt here” to right click menu of folder

Posted in Technology.

Open notepad and paste following content and save the file as cmd.reg. After creation, double clik the file and say yes on option alert box.

REGEDIT4

[HKEY_CLASSES_ROOTDirectoryshelldos]
@=”Command Prompt here”

[HKEY_CLASSES_ROOTDirectoryshelldoscommand]
@=”cmd.exe /k cd “%1″”


How to create a new user on oracle

Posted in Database, Technology.

create user newUser identified by userPassword;
grant create session to newUser_
grant create table to newUser;
GRANT create view TO newUser;
GRANT CREATE SEQUENCE TO newUser;
GRANT CREATE PROCEDURE TO newUser;
GRANT CREATE ANY TRIGGER TO newUser;
GRANT CREATE ANY TYPE TO newUser;
alter user newUser quota unlimited on users;


How to schedule jobs in Oracle

Posted in Database, Technology.

BEGIN
DBMS_SCHEDULER.DROP_JOB (‘TEST_JOB’);
END;
/

BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => ‘TEST_JOB’,
job_type => ‘PLSQL_BLOCK’,
job_action => ‘UPDATE TABLE tblName set value=5;’,
start_date => sysdate,
repeat_interval => ‘FREQ=HOURLY; INTERVAL=1′, /* every one hour */
enabled => TRUE,
comments => ‘Test_JOb’);
END;
/

BEGIN
DBMS_SCHEDULER.ENABLE (‘TEST_JOB’);
END;
/


How to send email from oracle stored procedure

Posted in Database, Internet, Technology.

BEGIN
UTL_MAIL.SEND (
sender => ‘xyz@gmail.com’,
recipients => ‘rst@yahoo.’,
subject => ‘test Oracle’,
message => ‘testing orcl’);
END;
/


How to drop everything on a oracle schema

Posted in Database, Technology.

BEGIN
FOR cur_rec IN (SELECT table_name, constraint_name
FROM user_constraints
WHERE constraint_type = ‘R’) LOOP
EXECUTE IMMEDIATE ‘ALTER TABLE ‘ || cur_rec.table_name || ‘ DROP CONSTRAINT ‘ || cur_rec.constraint_name;
END LOOP;
FOR cur_rec IN (SELECT object_name, object_type
FROM user_objects) LOOP
BEGIN
EXECUTE IMMEDIATE ‘DROP ‘ || cur_rec.object_type || ‘ ‘ || cur_rec.object_name;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
END LOOP;
execute immediate ‘purge recyclebin’;
END;
/


Selecting random rows from an oracle table

Posted in Database, Technology.

SELECT * FROM (SELECT * FROM TEST_TABLE ORDER BY dbms_random.value) WHERE rownum <= 5;
This will give 5 random rows from table.