Main | TipsAndHacks

Tips and Hacks

This page serves as a notepad for software tips and tricks that I've come across that I feel might benefit others.

Table of Contents


Windows File Shares / Connections

  1. List current connections
    net use
  2. Remove connection
    net use /delete <FULL SHARE NAME>

Virtual Box

  • Speeding up shared folders with a Windows 7 64-bit host and Windows XP guest
    1. On the guest, change the following in C:\WINDOWS\system32\drivers\etc\hosts from: localhost
      to localhost vboxsvr
  • Corrupt virtual machine list (If VirtualBox starts to crash when the VirtualBox Manager is started, the virtual machine list may be corrupt.)
    1. Rename the virtual machine folder(s) or the parent folder
    2. Open the VirtualBox Manager. (If it crashes, there is a different problem)
    3. Remove each virtual machine
    4. Restart the VirtualBox Manager (This step might not be required)
    5. Rename the virtual machine folder(s) or the parent folder
    6. Re-add the virtual machines to the VirtualBox Manager
    7. Restart the VirtualBox Manager (This step might not be required)
  • Compress virtual hard drive
    1. Zero out free space (on the virtual machine)
      sdelete -z
    2. Turn off the virtual machine
    3. Compress the virtual hard drive
      VBoxManage.exe modifyhd <vdi file> --compact

BluRay Playback

Windows XP does not come with a UDF 2.5 driver required for BluRay playback. However, the free Toshiba UDF 2.5 driver can be used.

  1. Download the driver from the Toshiba website
  2. Extract the single setup.exe file
  3. Run setup.exe
  4. Wait for the error message stating the driver can't be installed but do not close the message box
  5. Enter your user temp directory and locate the folder {1347D5A6-4FE0-476A-B85F-D0FC91F55EB0}. There will be two files inside that folder (thdudf.inf and thdudf.sys).
  6. Install the thdudf.inf
  7. Wait for the driver to install. There will be a messge box that opens and closes quickly.
  8. Close the original error message box and reboot

Visual Studio 2012

  1. Remove ALL CAPS<br>There is a registry setting that will remove the ALL CAPS feature from Visual Studio 2012
    1. Create the following DWORD registry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General\SuppressUppercaseConversion
    2. Set the newly created key's value to 1.
  2. Visual Studio 2012 supports a number of useful extensions
  3. If you receive an error RC2144: PRIMARY LANGUAGE ID not a number after creating a resource file in Visual Studio 2012, add #include <windows.h> right before the line #include "resource.h.
  4. If you need to add custom content to a resource file, add it to the #ifndef APSTUDIO_INVOKED section. The content should be added through Visual Studio.
  5. If the only desired content is in hand-generated, only the #ifndef APSTUDIO_INVOKED is required.