Windows XP and 2000 Tips & Tricks UPDATE, April 14, 2003

Windows XP and 2000 Tips & Tricks UPDATE—brought to you by the Windows & .NET Magazine Network and the Windows 2000 FAQ site
http://www.windows2000faq.com


THIS ISSUE SPONSORED BY

Send/Receive FAXES via EMAIL (FREE Trial & ROI)
http://www.faxback.com/w2ktips

HP & Microsoft Network Storage Solutions Road Show
http://www.winnetmag.com/roadshows/nas


SPONSOR: SEND/RECEIVE FAXES VIA EMAIL (FREE TRIAL & ROI)

SEND/RECEIVE FAXES VIA EMAIL (free trial, roi, whitepaper!)
Give your users the ability to send and receive fax documents from their e-mail system or a browser-based fax application!
http://www.faxback.com/w2ktips
Save money, and make your users more productive. NET SatisFAXtion fax servers seamlessly integrate with all e-mail systems. Register for our 30-day evaluation CD-ROM, whitepaper and ROI at:
http://www.faxback.com/w2ktips
or call 800-329-2225, or email [email protected]


April 14, 2003—In this issue:

1. COMMENTARY

2. FAQS

  • Q. How can I delete a folder whose name contains a drive letter?
  • Q. Why doesn't my Windows 2000-based system display the Auto Update dialog box correctly?
  • Q. Why can't I run the Control Panel Add/Remove Programs applet under Windows 2000 and later?
  • Q. Why do movies that I view in Windows Movie Maker 2 on my computer run faster than they should?
  • Q. How can I set when the Microsoft Java Virtual Machine (JVM) initiates Java garbage collection?
  • Q. How can I extend the USB polling period on my laptop?

3. ANNOUNCEMENTS

  • Couldn't Make the Microsoft Mobility Tour Event?
  • Microsoft TechEd 2003, June 1-6, 2003, Dallas, TX

4. CONTACT US

  • See this section for a list of ways to contact us.

1. COMMENTARY
(contributed by John Savill, FAQ Editor, [email protected])

This week, I explain how to delete a folder whose name contains a drive letter, why Windows 2000 might not display the Auto Update dialog box correctly, and why some missing registry entries or missing files might prevent the Control Panel Add/Remove Programs applet from running. I also tell you why movies viewed in Windows Movie Maker 2 might run faster than they should, how to set when the Microsoft Java Virtual Machine (JVM) initiates Java garbage collection, and how to extend the USB polling period.

Around the industry this week, Microsoft released the Microsoft Group Policy Management Console (GPMC), which I'll discuss in next week's Windows XP and 2000 Tips & Tricks UPDATE. You can download the GPMC from the Microsoft Web site. The company also released the Windows .NET Framework 1.1; additional information and the software download are available at http://msdn.microsoft.com/netframework/productinfo.

News has been circulating that Windows XP Service Pack 2 (SP2) might allow two concurrent connections: one remote user and one local user. However, at this time, this information appears to be just a rumor based on a leaked internal Microsoft proposal.


SPONSOR: HP & MICROSOFT NETWORK STORAGE SOLUTIONS ROAD SHOW

JOIN THE HP & MICROSOFT NETWORK STORAGE SOLUTIONS ROAD SHOW!
Now is the time to start thinking of storage as a strategic weapon in your IT arsenal. Attend the HP & Microsoft Network Storage Solutions Road Show, and learn how existing and future storage solutions can save your company money--and make your job easier! There is no fee for this event, but space is limited. Register now!
http://www.winnetmag.com/roadshows/nas


2. FAQS

Q. How can I delete a folder whose name contains a drive letter?

A. A reader recently contacted me regarding a problem that occurred when he misformed a Robocopy command and accidentally created a folder named Y:\DESTINATION / with a subdirectory of MIR. The misformed command was

robocopy "X:\SOURCEDIR" "Y:\DESTINATION /MIR /SEC

Notice that a double quote is missing at the end of the command.

When the user used Windows Explorer to view the folder, the folder appeared with the name DESTINATION instead of the folder's true name. To delete the folder, perform the following steps:

  1. Start a command session by going to Start, Run and typing
    cmd
  2. Navigate to the location where the folder exists.
  3. Run the command
    rmdir "Y:\DESTINATION /" /s 
  4. to remove the problematic folder.

Q. Why doesn't my Windows 2000-based system display the Auto Update dialog box correctly?

A. When you configure Auto Update, a dialog box appears in the lower right of your display to prompt you to begin the configuration process. If this dialog box is sized incorrectly, it might prevent you from completing the configuration process. To work around this problem, close the dialog box to end the configuration process and use the Control Panel System applet to configure Auto Update (go to Start, Settings, Control Panel; select the System applet; then click the Automatic Updates tab).

Q. Why can't I run the Control Panel Add/Remove Programs applet under Windows 2000 and later?

A. The Add/Remove Programs applet might stop running if your system is missing some required registry entries. To resolve this problem, you must add the necessary entries to the registry by performing the following steps:

  1. Start a command session by going to Start, Run and typing
    cmd
  2. Enter each of the following commands (click OK to each confirmation that appears):
    regsvr32 mshtml.dll
    regsvr32 shdocvw.dll -i
    regsvr32 shell32.dll -i 
  3. Close the command session by typing
    exit 

You should now be able to start the Add/Remove Programs applet. If the applet still won't run, you might be missing a file; to check, use the System File Checker (SFC) to check for and replace missing or corrupt files by performing the following steps:

  1. Start a command session by going to Start, Run and typing
    cmd 
  2. Enter each of the following commands (the system might prompt you to enter the installation media during this process):
    sfc /purgecache
    sfc /scannow 
  3. Restart the computer.

Q. Why do movies that I view in Windows Movie Maker 2 on my computer run faster than they should?

A. This problem is typically caused by the presence of an old version of InterVideo's WinDVD on your machine. You need to install the latest version of WinDVD, which you can acquire from the InterVideo Web site.

Q. How can I set when the Microsoft Java Virtual Machine (JVM) initiates Java garbage collection?

A. The Java programming language frees programmers from having to remember which memory areas they've allocated so they don't need to free those areas when the function is finished using them. In Java, the runtime environment uses the garbage collection process to automatically free memory when it's no longer needed, but this process uses resources while it's running. With JVM, build 3229, and later, you can configure the garbage collection process to run only after a certain amount of memory has been allocated to Java. To do so, perform the following steps:

  1. Start a registry editor (e.g., regedit.exe).
  2. Navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM registry subkey.
  3. From the Edit menu, select New, DWORD Value.
  4. Enter the name Generation0Size, then press Enter.
  5. Double-click the value, set it to the number of bytes that must be allocated to Java before you want the garbage collection process to run, then click OK.
  6. Close the registry editor.
  7. Restart the machine for the change to take effect.

Q. How can I extend the USB polling period on my laptop?

A. By default, your computer's USB polling period is 1 millisecond (ms), which can sometimes cause problems--even if no USB devices are connected--when a laptop is trying to enter a hibernate state. You can extend this polling period up to 5ms by performing the following steps:

  1. Start a registry editor (e.g., regedit.exe).
  2. Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\\{36FC9E60-C465-11CF-8056-444553540000\} registry subkey.
  3. For each subkey (e.g., ...0000, ...0001), go to the Edit menu, then select New, DWORD Value.
  4. Enter the name IdleEnable, set the value to an integer from 2 to 5, then click OK.
  5. Close the registry editor.
  6. Restart the machine for the change to take effect.

3. ANNOUNCEMENTS
(brought to you by Windows & .NET Magazine and its partners)

  • COULDN'T MAKE THE MICROSOFT MOBILITY TOUR EVENT?

  • If you were too busy to catch our Microsoft Mobility Tour event in person, now you can view the Webcast archives for free! You'll learn more about the available solutions for PC and mobile devices and discover the direction mobility marketplace is headed.
    http://www.winnetmag.com/seminars/mobility

  • MICROSOFT TECHED 2003, JUNE 1-6, 2003, DALLAS, TX

  • Realize your potential at TechEd 2003, Microsoft's premier technical conference. Includes the latest in-depth sessions on the entire .NET developer-language family. Register by April 25 and save $400!
    http://go.microsoft.com/fwlink/?linkId=14029

    4. CONTACT US
    Here's how to reach us with your comments and questions:

    (please mention the newsletter name in the subject line)

    This weekly email newsletter is brought to you by Windows & .NET Magazine, the leading publication for Windows professionals who want to learn more and perform better. Subscribe today.
    http://www.winnetmag.com/sub.cfm?code=wswi201x1z

    Receive the latest information about the Windows and .NET topics of your choice. Subscribe to our other FREE email newsletters.
    http://www.winnetmag.net/email

    Hide comments

    Comments

    • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

    Plain text

    • No HTML tags allowed.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Lines and paragraphs break automatically.
    Publish