Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Start Windows Explorer Opened to a Specific Folder?

(image) Hey, Scripting Guy! How can I start Windows Explorer opened to a specific folder?-- CD(image) (image) (image) Hey, CD. We’re going to let you in on one of the Scripting Guys’ most sordid secrets: sometimes the Scripting Guys don’t agree with each other. No, it’s true; really. For example, some of the Scripting Guys think ...

How Can I Determine the Local Path to a Shared Folder?

(image) Hey, Scripting Guy! If I have a UNC path like \\server1\test, can I use a script to determine the local path to that shared folder (like C:\Scripts\Test Folder)?-- JVK(image) (image) (image) Hey, JVK. Yes, you are correct: the Kirkland Fire did open their season last night, rallying for 4 runs in the last two innings to defeat ...

How Can I Delete a Folder That Has an Apostrophe in the Name?

(image) Hey, Scripting Guy! How can I delete a folder that has an apostrophe in the name?-- JH(image) (image) (image) Hey, JH. Ah, yes, the apostrophe: every script writer’s arch-nemesis. The apostrophe seems like such a simple little character, but don’t let its appearance fool you: the apostrophe (or the single quote) is probably the...

How Can I Write Output to the Screen that Overwrites Whatever is Currently on the Screen?

(image) Hey, Scripting Guy! How can I write output to the screen that overwrites whatever is currently on the screen?-- KM(image) (image) (image) Hey, KM. If you specifically need to write your output to the command window, well, then we don’t have an answer for you: although we played around with a few things, we never found an easy, ...