Windows Advisor

Quick Hit -- Vista Shell Commands

Get access to some common Vista folders using the shell commands.

Instead of this week's regular Q&A, I thought I'd just pass along a nifty tip for accessing some of the more common Vista folders. Yes, the shell command in Vista gives you quick access to various folders.

To access a shell command, just click on Start, Run and then type "shell:command." Don't try to use the shell:command at the command prompt (cmd.exe), as it will fail -- shell:command is not recognized by the command interpreter.

Here are some of the more common ones:

shell:contacts
shell:cookies
shell:favorites
shell:fonts
shell:gadgets
shell:history
shell:my music
shell:my pictures
shell:profile
shell:recent
shell:start menu
shell:startup
shell:system
shell:userprofiles


Notice that the last one has no space between the words "user" and "profiles" in this command.

So, to open the Downloads folder, click Start | Run and type "shell:downloads." If you want to look at the folder where Internet Explorer saves cookies, instead of going through Windows Explorer and locating the folder, you can quickly access it by typing "shell:cookies."

There's a long list of shell commands that can be used in Vista, though obviously you'll find some more useful than the others. Once you open the folder with the shell command, you may want to create a shortcut for it for future use if you expect to to access it frequently.

Note that there are some shell commands that only work in 64-bit Vista' don't be surprised if all the shell commands don't work for your 32-bit Vista.

About the Author

Zubair Alexander, MCSE, MCT, MCSA and Microsoft MVP is the founder of SeattlePro Enterprises, an IT training and consulting business. His experience covers a wide range of spectrum: trainer, consultant, systems administrator, security architect, network engineer, author, technical editor, college instructor and public speaker. Zubair holds more than 25 technical certifications and Bachelor of Science degrees in Aeronautics & Astronautics Engineering, Mathematics and Computer Information Systems. His Web site, www.techgalaxy.net, is dedicated to technical resources for IT professionals. Zubair may be reached at alexander@techgalaxy.net.

Reader Comments:

Tue, Dec 9, 2008 Harvey Colwell Anonymous

I’m a long time command line user, so I’m always happy to come across new commands that I didn’t already know about.

You stated in the article that these shell commands could not be ran from a CMD prompt. I decided to try to good old START command line tool. As you know, it can be used to launch Windows programs from a command line. Well I got all of the SHELL:folder_name command to work except for the ones that contain a space in their names, such as “start menu” and “my music”. I tried all of the normal methods of quoting, with no luck.

This works. . .

c:\>start shell:history

But these doesn’t. . .

c:\>start shell:start menu
c:\>start “” shell:”start menu”
c:\>start shell:’start menu’

Thu, Dec 4, 2008 Anonymous Anonymous

It works on my Vista 32-bit when I use start, run but not at the command prompt. It also works on my XP SP2.

Wed, Nov 19, 2008 Ivo Bulgaria

Works also in XPSP3

Tue, Nov 18, 2008 Anonymous Anonymous

If you want to use these commands from a Command Prompt window, simply preceed them with the word

Mon, Nov 17, 2008 Anonymous Anonymous

shell:command didn't work also on vista 64-bit (ultimate) !

Mon, Nov 17, 2008 Anonymous Anonymous

shell:command didn't work for me on a Vista 32-bit enterprise edition.

Add Your Comment Now:

Your Name:(optional)
Your Email:(optional)
Your Location:(optional)
Comment:
Please type the letters/numbers you see above