Saturday, May 12, 2007

Prevent Frequent Disconnections in Windows 98

If you get disconnected frequently, try this extra modem setting:

  1. Go to Modems in Control Panel (Start > Settings > Control Panel)
  2. From Modems select Properties, select the Connection Tab, click the Advanced button
  3. In the Extra settings dialog box, enter S10=50

This will force the modem to stay connected without a carrier, up to 5 seconds.



PHP,Java, DHTML, C, C++ and many more languages, for help visit Programming Fourm

Configuring Windows XP Applications for Dual Core Processors

If you have a dual-core processor, you may discover that certain older applications that ran fine on systems with a single core CPU have problems running with two cores. For example, your application may suddenly begin maxing out the CPU usage at 100 percent, appearing to lock up. Windows XP Professional's Processor Affinity setting allows you to work around such problems by configuring older applications to use only one of the cores. Here's how to set it up:

  1. Access Task Manager.
  2. Choose the Processes tab.
  3. Right-click the process associated with the problem application.
  4. Select the Set Affinity command. (If you don't have a dual-core system, you won't see the Set Affinity command.)
  5. From the Processor Affinity dialog box, clear one of the CPU check boxes.

You could perform this manual operation every time you run the application, but the THG Task Assignment Manager (available for download from Tom's Hardware) allows you to create profiles that automatically assign applications to a specific CPU every time you run them.

Note: This tip applies only to Windows XP Professional.




PHP,Java, DHTML, C, C++ and many more languages, for help visit Programming Fourm

Friday, May 11, 2007

View Non-present Devices on Windows XP

When troubleshooting driver problems in Windows XP, one of the first places you may look is Device Manager, which provides detailed information about every piece of installed system hardware. In light of devices such as removable USB drives becoming more and more common, you may need information about devices that are not currently connected; Device Manager recognizes these as non-present devices. Here's how to get information about these devices:

  1. Go to Start, right-click My Computer, and select Properties.
  2. In the System Properties dialog box, select the Advanced tab and click the Environment Variables button.
  3. In the Environment Variables dialog box, locate the System Variables panel and click New.
  4. In the New System Variable dialog box, type DEVMGR_SHOW_NONPRESENT_DEVICES in the Variable Name text box and type 1 in the Variable Value text box.
  5. Click OK twice.
  6. To view the non-present devices, go to Start, right-click My Computer, and select Manage.
  7. Click Device Manager, pull down the View menu, and select Show Hidden Devices.

Note: This tip applies to both Windows XP Home and Windows XP Professional.




PHP,Java, DHTML, C, C++ and many more languages, for help visit Programming Fourm

USB Architecture in Windows XP

As long as you have enough power, attaching many USB devices to your Windows XP system can't cause degradation in performance -- even if you attach as many as 127 USB devices at one time.

While it's unlikely for that many devices to be connected at a time, that number is made possible by Windows XP's seven-tiered USB topology. The top, or tier number one, consists of the host controller or root hub, which is the USB hub built into the computer's motherboard. Tiers two through six are equipped to consist of a series of USB hubs (two or more at each tier) daisy chained together. Tier seven consists of any devices attached to the USB hub(s) at tier six.

While USB hubs can draw power from the root hub, the amount of power is limited to 100 milliamperes per port, and the hub can only have four ports. However, most USB hubs have their own external AC adapter and can provide up to 500 milliamperes of power per port on more than four ports.

Follow these steps to learn more about the root hub and the USB hubs attached to your system in Device Manager:

  1. Go to Start, right-click My Computer, and select Manage.
  2. Click Device Manager in the left pane.
  3. Click Universal Serial Bus Controllers in Device Manager.
  4. Double-click each root and USB hub and check the information on the tabs.

Note: This tip applies to both Windows XP Home and Windows XP Professional.




PHP,Java, DHTML, C, C++ and many more languages, for help visit Programming Fourm

Speed Up Windows XP Shutdown

If your Windows XP Pro system slows or even stops when you shut it down, there's a good chance that Terminal Services is the reason. Users often overlook Terminal Services as a possible source of shutdown problems because it works quietly in the background.

Terminal Services is the brains behind such things as Remote Desktop, Remote Assistance, Fast User Switching, and Terminal Server. If you're not using any of these programs, you can disable Terminal Services. If you are using any of these programs, you can stop Terminal Services and reconfigure it to start up manually. Here's how:

  1. Right-click My Computer and select Manage.
  2. In the Computer Management window, open the Services And Applications branch in the left pane and click Services.
  3. In the Services pane, locate and double-click Terminal Services.
  4. In the Terminal Services Properties dialog box, click the Stop button and then set the Startup Type setting to either Disabled or Manual.
  5. Click OK and then close the Computer Management window.
  6. Restart Windows.

If you don’t find Terminal Services in the Services pane, or if it is there but is already disabled, or Windows still hangs during shutdown even after you change the Startup Type setting, then the source of your shutdown problem is not related to Terminal Services.

Note: This tip applies only to Windows XP Professional.




PHP,Java, DHTML, C, C++ and many more languages, for help visit Programming Fourm

Command Prompt Command History on Windows XP

If you often work from Windows XP's command prompt, chances are you know that you can cycle through a list of all the commands that you've typed in a particular session using the up and down arrows on your keyboard. You can also change the size of this history list by clicking the command button in the upper left corner, selecting the Properties command and and then changing the buffer size number on the Options tab under Command History.

Particularly, if you mostly work on *nix system, you would surely miss the history command on Windows.

By default, the buffer size is set to 50, which means that the command history can potentially contain a lot of commands, making it difficult to cycle through all the commands that you've typed by using the up and down arrows on your keyboard. Fortunately, there's an easier way.

At the command prompt, enter the following command:

DOSKEY /history


When you do so, you'll see a full listing of all the commands that you've entered in a current session.

Note: This tip applies to both Windows XP Home and Windows XP Professional.




PHP,Java, DHTML, C, C++ and many more languages, for help visit Programming Fourm

Delete Duplicate Files on Windows XP To Free Space

Even if you're a computer user keen on keeping your system healthy (i.e., you regularly delete unnecessary files, empty the Recycle Bin, and run Disk Defragmenter), you may be unaware of a potentially big waster of hard disk space: duplicate files. Applications can litter your hard disk with duplicate files, or you can actually create duplicate files by copying files from one folder to another.

Windows XP's default installation doesn't provide you with a decent utility for tracking down duplicate files. However, Microsoft does have a tool called Duplicate Finder, which is part of the Windows XP Service Pack 2 Support Tools. Here's how to install and use the Duplicate Finder tool:

  1. Download the Windows XP Service Pack 2 Support Tools and follow the instructions for installing the Complete installation version.
  2. Open the Run dialog box by pressing [Windows]R.
  3. Type Dupfinder in the Open text box and click OK.
  4. Once DupFinder loads, simply select the drive or folder to search and then click the Start Search button.
  5. When DupFinder completes its search, you can scan through the list and examine the duplicate files.

Here are tips for working with the list of duplicate files:

  • Use either the Print Report or Export Data commands on the File menu to create a permanent record of the duplicate files.
  • Use the Sort command on the View menu to reorganize the list for better analysis.
  • To get more detailed information about any file, select the file, pull down the File menu, and select the Info command.
  • Leave duplicate files in the Windows folder and its sub folders alone.
  • If you don't recognize the duplicate file, it's better to use the Rename or Move commands on the File menu rather than the Delete command.

Note: This tip applies to both Windows XP Home and Windows XP Professional.




PHP,Java, DHTML, C, C++ and many more languages, for help visit Programming Fourm

Articles & Write-ups