
In other words, to open Windows Explorer focused on C:\Scripts you’d type the following from the command prompt: my-script.vbs “c:\scripts”Īre the double quotes required around the folder path? In this case, no. To get this script (which we’ll call my-script.vbs) to work all you need to do is call the script from the command prompt, passing the name of the folder you want opened as the lone argument. Let’s start with the command-line script first. Therefore, we’re going to give you two different scripts to choose from, one command-line oriented, one GUI-oriented. So is one side right and one side wrong? Of course! However, just as we … agreed … that soccer and stock car racing were sports, we’ve also agreed that the command line and the GUI are equally good ways of getting Windows Explorer to open up with the focus on a specific folder. Other Scripting Guys would argue that system administrators don’t care whether they use the command line or a GUI tool: they just want to get the job done as quickly and as easily as possible. And he’s not the only Microsoft-type who feels that way we know of at least one Program Manager who, whenever he wants to start Word, opens a command window and types winword.exe at the command prompt. At least one of the Scripting Guys believes that system administrators and IT professionals would never stoop to using the Windows graphical user interface (GUI).


Here’s another area in which the Scripting Guys disagree.
