Showing tag results for Tips/Support

Jun 17, 2010
Post comments count0
Post likes count1

As random as I wanna be: Why cmd.exe's %RANDOM% isn't so random

Raymond Chen
Raymond Chen

Somebody on my team reported that a particular script in our project's build process would fail with bizarre output maybe once in fifty tries. This script was run from a , and the result was a failed build. Rerunning make fixed the problem, but that's not much consolation when the build lab encounters it approximately every other day. The strange ...

Tips/Support
May 14, 2010
Post comments count0
Post likes count1

How do I prevent users from dragging and dropping files in Explorer?

Raymond Chen
Raymond Chen

More than once, I've had a customer ask, "How do I prevent users from dragging and dropping files in Explorer?" Actually, three of them in the past year phrased it in an even more provocative way: "I want to write a program that hooks Explorer and displays a prompt before every drag/drop operation." This is one of those cases where you have to fig...

Tips/Support
Apr 15, 2010
Post comments count0
Post likes count1

Why are there two values for NoDriveTypeAutoRun which disable Autoplay on drives of unknown type?

Raymond Chen
Raymond Chen

The Windows 2000 Resource Kit described the policy as consisting of a bitfield whose values are as follows: Hey, wait, two of the entries are the same. What's the difference between 0x1 (Disables Autoplay on drives of unknown type) and 0x80 (Disables Autoplay on drives of unknown type)? The values in the bitfield correspond to return value...

Tips/Support
Apr 7, 2010
Post comments count0
Post likes count1

How to edit the security attributes of more than one file at a time

Raymond Chen
Raymond Chen

In Windows XP, you could select multiple files, right-click them, then select Properties. The resulting property sheet includes a Security page which lets you edit the security attributes of those files. But when you repeat this exercise on Windows Vista or Windows 7, the Security page is missing. Why doesn't Explorer let you edit th...

Tips/Support
Jan 27, 2010
Post comments count0
Post likes count1

If you are trying to understand an error, you may want to look up the error code to see what it means instead of just shrugging

Raymond Chen
Raymond Chen

A customer had a debug trace log and needed some help interpreting it. The trace log was generated by an operating system component, but the details aren't important to the story. I've attached the log file. I think the following may be part of the problem. Any ideas? Thanks, Bob Smith Senior Test Engineer Tailspin Toys What struck me i...

Tips/Support
Dec 29, 2009
Post comments count0
Post likes count1

How do I minimize a group of windows in Windows 7 from the taskbar?

Raymond Chen
Raymond Chen

The Windows 7 taskbar automatically groups similar windows, and when you right-click on the grouped icon, you may get fancy stuff like a jump list or a task list, but you will also get a very small repertoire of window management options. In particular, the only option that operates on the group is Close all windows. What about the other group...

Tips/Support
Dec 9, 2009
Post comments count0
Post likes count1

What are those little overlay icons: Windows 7 edition

Raymond Chen
Raymond Chen

Some time ago, I summarized the overlay icons that come with Windows. There have been some changes in Windows 7, so I figured it'd be worth coming up with a new list. A private item is an item where the only user account with access is you.¹ You create one of these, for example, by going to the sharing wizard and saying Share with: No...

Tips/Support
Nov 27, 2009
Post comments count0
Post likes count1

Caches are nice, but they confuse memory leak detection tools

Raymond Chen
Raymond Chen

Knowledge Base article 139071 has the technically correct but easily misinterpreted title FIX: OLE Automation BSTR caching will cause memory leak sources in Windows 2000. The title is misleading because it makes you think that Oh, this is a fix for a memory leak in OLE Automation, but that's not what it is. The is the string type used by OLE Aut...

Tips/Support
Nov 26, 2009
Post comments count0
Post likes count1

When you want to copy a file into a folder, make sure you have a folder

Raymond Chen
Raymond Chen

This story is inspired by an actual customer problem. The program is used for TPS management, and when you want to create a new TPS report, you have to pick a cover sheet. The program shows you the cover sheets that have been defined, which it loads from the directory. The customer found that on one of the machines, the cover sheets weren't...

Tips/Support