The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Scripting Blog [archived]
Formerly known as the "Hey, Scripting Guy!" blog
Latest posts
How Can I Determine the Drive Letter for the Drive My Script is Currently Running On?
Hey, Scripting Guy! I have a script that runs off a CD and copies a bunch of files to a computer. However, in order to copy the files I need to know the complete file path, including the drive letter. How can I determine the drive letter for the drive my script is currently running on?-- RKG Hey, RKG. You know, about a year or so ago one of the Scripting Guys installed - or, more accurately, tried to install - a relatively well-known application. Note. If this had been a Microsoft program we’d tell you the name, but this wasn’t a Microsoft program. As if Microsoft would ever release software that didn’t ...