Wednesday, December 3, 2008

How to check the port status (Using Netstat)

Open Command Prompt (Click 'Start' --> Run --> Type 'cmd' --> Press 'Enter')

To get the status of all port, give the below command:

netstat -aon


You will get a result like this
-------------------------------

Active Connections

Proto Local Address Foreign Address State PID

TCP 0.0.0.0:1110 0.0.0.0:0 LISTENING 296
TCP 127.0.0.1:1028 0.0.0.0:0 LISTENING 792
TCP 127.0.0.1:1037 127.0.0.1:1038 ESTABLISHED 684
TCP 127.0.0.1:1039 127.0.0.1:1040 ESTABLISHED 1944

Comparing the PID number with that in the Task Manager, you can find which application is listening to a specific port.

:-)

Tuesday, November 25, 2008

Disable SPAM folder in GMAIL

This is just a trick to make Gmail to move all mails to your inbox. Follow the below steps to do it:

Go to Settings --> Filters --> Create a new filter


In the Has the words: text box, enter one of the following terms:

is:spam or in:spam or label:spam


Click Next Step --> OK button when a dialog pops up to warn against using in:, is: or label: criteria in filter.


Check box for Never send it to Spam as the filter’s action. Click on Create Filter to disable spam filter.


Wednesday, November 19, 2008

Keyboard Shortcuts in RDP

  • CTRL+ALT+DEL >> CTRL+ALT+END : Open the Microsoft Windows NT Security dialog box
  • CTRL+PAGE UP >> ALT+PAGE UP : Switch between programs from left to right
  • CTRL+PAGE DOWN >> ALT+PAGE DOWN : Switch between programs from right to left
  • ALT+TAB >> ALT+INSERT : Cycle through the programs in most recently used order
  • CTRL+ESC >> ALT+HOME : Display the Start menu
  • CTRL+ALT+BREAK : Switch the client computer between a window and a full screen
  • ALT+DELETE : Display the Windows menu
  • ALT+PRT SC >> CTRL+ALT+Minus sign (-) : Place a snapshot of the entire client window area on the Terminal server clipboard and provide the same functionality as pressing ALT+PRINT SCREEN on a local computer
  • PRT SC >> CTRL+ALT+Plus sign (+) : Place a snapshot of the active window in the client on the Terminal server clipboard and provide the same functionality as pressing PRINT SCREEN on a local computer

RDP Console Session from WinXP SP3

The 'mstsc /console' command has been replaced by 'mstsc /admin' in Windows XP SP3. Below is the old and new command.

mstsc /v: [ip] /console

From SP3
------------
mstsc /v: [IP] /admin

Tuesday, November 11, 2008

Multiple Instances of Yahoo!, Gtalk & Pidgin

Yahoo! Messenger
===============

Click 'Start' --> Run --> Type 'regedit' --> OK
Expand to 'HKEY_CURRENT_USER--> Software --> Yahoo --> pager -->Test
Create new 'DWORD' --> Name it as 'Plural'
Double click it --> Change the value to '1' --> Choose the option 'Decimal'
Close Registry


Gtalk
=====

Take the 'Properties' of the Gtalk shortcut on your desktop or start menu
Change the target location to read like this
'c:\program files\google\google talk\googletalk.exe” /nomutex'
Click 'OK'


Pidgin
====


Open the 'Properties' window of Pidgin shortcut on your desktop or start menu
Add '-m' at the end of the target location
("C:\Program Files\Pidgin\pidgin.exe" -m)
Click 'OK

:-)

Saturday, October 25, 2008

Hidden Data in Notepad

This tip is to hide a data in Notepad. Follow the steps to do that.

1) Open Command Prompt
2) Type notepad MyFile.txt:StoreHiddenData and press enter. MyFile.txt is the text file you are going to create whereas StoreHiddenData is the alternate stream name.
3) A message will be pop up “Cannot find the C:\MyFile.txt:StoreHiddenData.txt file”. Do you want to create a new file?”, click OK button to proceed create the new file.
4) A notepad will be pop up. Type any data that you want to be hidden from others. Save the file and you are now successfully creating hidden data for this file.

The hidden data you have created will not contribute to the total file size. Just open Explorer and look for this file, you will observe that the file size is still zero. Now you can go ahead to type some data and saved it as usual. Good thing is, it will not affect the hidden data that you have saved earlier. On top of that, you can display or delete all the hidden data you have saved previously. However, you must download and install Streams (http://download.sysinternals.com/Files/Streams.zip) application before you can do so. To delete hidden data, go to command prompt and type more < MyFile.txt:StoreHiddenData.txt. If you want to delete all hidden data , the syntax is streams.exe –d MyFile.txt.

Have a try :-)

Sunday, October 12, 2008

Use Vista/XP without restarting after program installation

Create a .bat file
===============

@echo off
taskkill /f /IM explorer.exe
explorer.exe


Run this after installing the new software.

Tuesday, October 7, 2008

Enable 'Empty folder contents' option

This feature helps to 'Empty the folder contents' by keeping the folder tree structure.


1) Go to Start -> Run, then type ‘regedit’ and press enter
2) Locate to HKEY_CLASSES_ROOT\Directory\shell
3) Right click on ‘shell’ folder and choose New -> Key, name the new sub key as ‘Empty Folder Contents’.
4) Right click on ‘Empty Folder Contents’ and choose New -> Key, name the sub key as ‘Command’.
5) Under the ‘Command’ sub key, double click on ‘Default’ as located at right panel. A small Edit String window will be pop up, then enter this value: cmd /c “cd /d %1 && del /s /f /q *.*”
6) Click OK button to save the setting.


Just 'Right Click' the folder you need to empty the contents and you can see the option enabled. All the files in this folder as well as sub folders will be deleted without disturbing the original folder tree structure.

For Windows Vista, do the following...
============================

# Navigate to the following registry key:

HKEY_CLASSES_ROOT\Directory\shell
# Right click on shell folder, and then choose New -> Key. Name the new subkey as Empty Folder Contents, or anything you would like.
# Right click on Empty Folder Contents and choose New -> Key. Name the sub-key as Command.
# Under the Command sub-key, double click on the Default value data that is located at right pane.
# On the pop-up “Edit String” dialog window, enter the following value:

cmd /c "cd /d %1 && del /s /f /q *.*"
# Click OK button to save the setting, and exit from Registry Editor.


Have Fun :-)

Monday, July 28, 2008

Login to Gmail using secure channel


Gmail allows you to force the login using the Secure Channel (https). This reduces the chances of your Gmail account getting hacked.

- Login to your Gmail account

- Click 'Settings'

- Scroll down to the bottom on the 'General' page

- Under 'Browser connection:' click on 'Always use https'

- Click 'Save Settings'

Try it...