Category Archives: Windows

How can I determine which ports a specific process is using on Windows XP and later?

If you want to find out which ports a process is using and you know the process name, you must first determine the process identifier (PID). For example, to identify the PID for the oracle.exe process running on my system, I went to the command promptĀ and typed

c:\> tasklist

This command returned the following information:

The second column shows the PID, which I can then use with the Netstat command to search all in-use ports. For example, if I type

c:\> netstat -ano | findstr 2140

my system returns the following information:

This result shows that the Oracle service was using TCP port 1028, 1030, 1031 on all addresses.

You can also perform a reverse operation to find out which process is associated with a port. For example, to identify which process is using port 25, I could go to the command prompt and type

c:\> netstat -ano | findstr :1030

On my system, this command returns the following information:

After I identify the process (in this case, 2500), I can determine the process name by typing

c:\> tasklist /fi "PID eq 2140"

which returns the following information on my system:

You can also use the TCPView program from http://www.sysinternals.com, which makes the whole process a lot simpler.

– SARWAN

How to install or remove a font in Windows

This article describes how to add and remove fonts in Microsoft Windows.

To add a new font

Important To install fonts, you must have them on a floppy disk, CD, or your hard disk.

To install a font, follow these steps:

  1. Click Start, and then click Run.
  2. Type the following command, and then click OK:
    %windir%\fonts
  3. On the File menu, click Install New Font.
  4. In the Drives box, click the drive that contains the font that you want to add.

    Note The floppy disk drive is typically drive A or drive B. The CD drive is typically drive D.

  5. In the Folders box, click the folder that contains the font that you want to add, and then click OK.
  6. In the List of fonts box, click the font that you want to add. To select more than one font at a time, press and hold the CTRL key while you select each font.
  7. Click to select the Copy Fonts To Fonts Folder check box. The new font is saved in the Windows\Fonts folder.
  8. Click OK.

Note Windows supports TrueType fonts or fonts that are designed especially for Windows which can be purchased separately. Some programs also include special fonts that are installed as part of the program installation. Additionally, TrueType or special Windows fonts are frequently included with printers.

To remove a font

// To remove a font from the hard disk, follow these steps:

  1. Click Start, and then click Run.
  2. Type the following command, and then click OK:
    %windir%\fonts
  3. Click the font that you want to remove. To select more than one font at a time, press and hold the CTRL key while you select each font.
  4. On the File menu, click Delete.
  5. When you receive the “Are you sure you want to delete these fonts?” prompt, click Yes.

Note You can prevent a font from loading without removing it from the hard disk. To do this, move the font from the Windows\Fonts folder to another folder.

To reinstall the standard fonts included with Windows

// If any of the standard fonts that are included with Windows are missing, you can run Windows Setup again. Setup replaces missing or changed files. If the standard fonts are missing, other Windows files may also be missing. Setup also reinstalls these files.

The following fonts are included with Windows and are installed on every computer:

  • Courier New (TrueType, including Bold, Italic, and Bold Italic variations)
  • Arial (TrueType, including Bold, Italic, and Bold Italic variations)
  • Times New Roman (TrueType, including Bold, Italic, and Bold Italic variations)
  • Symbol (TrueType)
  • Wingdings (TrueType)
  • MS Serif
  • MS Sans Serif