Archive from May, 2007

When I open Windows Explorer, it takes a few seconds before it displays information. How can I eliminate that delay?

I fixed this problem by simply removing invalid entries from my system path. When Windows Explorer starts, it traverses the PATH variable, and invalid entries can extend the time necessary for Windows Explorer to initiate. To solve the problem, you need to ensure that each item in your PATH variable exists. To do so, open the Control Panel System applet, and access the Advanced settings (on the Advanced tab). Click the Environment Variables button. Under System Variables, view the PATH variable and check each entry that makes up the path. (Entries are separated by a semicolon.) Remove any incorrect entries, and click OK. Click OK on the main Environment Variables dialog box.

May 21, 2007 - General, Scripting    No Comments

How can I quickly check whether a folder contains a certain type of file?

You can pass the test-path cmdlet a wildcard expression to see whether any matching file exists. For example, to see whether a folder has any MP3 files, you can use

test-path d:temp*.mp3

Related Posts Plugin for WordPress, Blogger...