Geeks With Blogs
Robert Bernstein's Blog Adventures in Windows, .NET, and C++ September 2010 Entries
Enable Ping in Windows 7

If you cannot ping a Windows 7 box, don't just disable the Windows Firewall.  See the following page describing how to enable the included ICMP Echo rule in the Windows Firewall:

Note that I shut down the Windows Firewall service (net stop mpssvc) and this did not "re-enable" ping.  I had to add the firewall rule.  There may be another solution, but this solved my problem.


Posted On Thursday, September 30, 2010 4:16 PM

Consolidating Multiple VMware VMDK Disk Files into One
If you have older VMware Workstation disk images (vmdk files) that are split into multiple parts, you can consolidate them into a single disk image from the command prompt: vmware-vdiskmanager -r MyVirtualMachineDisk.vmdk -t 0 SingleDiskFile.vmdk The "-t 0" means "single growable virtual disk". If you prefer to preallocate all the storage for the disk, use "-t 2" instead, which means "preallocated virtual disk." You can view more options by running the vmware-vdiskmanager command with no parameters. ......

Posted On Thursday, September 30, 2010 3:14 PM

Enable SQL Server Mgmt Studio to Overwrite Table Designs
By default, SQL Server Management Studio (SSMS) will not let you save changes to the designs of your tables. When you attempt to do so, it wants you to drop and re-create the table. You will typically see a dialog similar to the following: However, SSMS will actually let you perform such a change without have to drop the table and re-create it. To enable this feature, you need to select Tools / Options from the Menu. Then, navigate to Designers / Table and Database Designers and uncheck the option ......

Posted On Monday, September 27, 2010 11:18 AM

VS2010 Automatically Includes Your Text Files as Resources
When you right-click on your WPF project in Visual Studio 2010 (VS2010) and select Add / New Item... / Text File, the "Build Action" on this file is automatically set to "Resource." So, when you ship your application, this text file will be embedded within it. If this was simply meant to be a readme file for your own benefit, you may not want it embedded in your app. In this case, click on the text file in Solution Explorer (or Solution Navigator), go to the Properties window, and change "Build Action" ......

Posted On Friday, September 24, 2010 3:19 PM

Secure Delete Shell Extension
If you have the Sysinternals SDelete.exe program on your system and would like to be able to right-click on a file or directory in Windows Explorer and have it securely delete that data, then I have just the shell extension for you. Download the SDelete.inf file, below, and securely delete away! EDIT: I discovered that files and directories with the read-only attribute set on them will not be deleted, so make sure that you remove this attribute before running the SDelete command. Please let me know ......

Posted On Sunday, September 19, 2010 5:32 PM

Change the Default VS2010 Start Page "Language"
When you first run Visual Studio 2010 (VS2010), it asks you to select a profile (e.g. C#, C++). This determines the Start Page displayed when VS2010 starts. Once you pick this, there appears to be no easy way to change your selection (at least none that I've found). To see which start pages are available to you, look in the following directory: 32-bit Windows: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\StartPages\en 64-bit Windows: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\StartPages\en ......

Posted On Friday, September 17, 2010 2:04 PM

Integrate the Windows SDK v7.1 with VS2010
Final Solution: I figured it out! Open your project in VS2010, select the Project menu and choose Properties..., and click the dropdown next to Platform Toolset. You can select between v100 (VS2010), v90 (VS2008), and Windows7.1SDK. Select the 7.1 SDK and click OK. Now you're all set. Note that you can use v90 to build apps that compile for older versions of Windows as long as you have VS2008 already installed on your machine. --------- The information below is just kept to remind me what I did. ......

Posted On Friday, September 17, 2010 1:34 PM

Tip of the Day: Launching Programs with Administrator Privileges from the Windows 7 Taskbar
For those of you who have pinned any program to your Windows 7 taskbar, you can hold down the Ctrl and Shift keys when clicking the icon and it will launch it with Administrator privileges. I use this frequently when I need to run Visual Studio 2010 with Administrator privileges, but it will work with any program. Now I just need someone to write a VS2010 Extension to relaunch VS2010 with Administrative privileges for the same Solution file. Maybe I have a new project on my hands... Rob ......

Posted On Thursday, September 9, 2010 3:56 PM

Copyright © Rob | Powered by: