Powershell open a new file explorer window in a specific location

In order to open a new file explorer window in a specific location from Powershell, you can use the following very simple command in a Powershell script:

$Folder = 'D:\'
Invoke-Item $Folder

This can come in handy in certain cases. For example if you are making a script that places files in a certain location, and you then want the user to be able to see the output files and copy it to other destinations.

Published
Categorized as Powershell

By Leendert de Borst

Freelance software architect with 10+ years of experience. Expert in translating complex technical problems into creative & simple solutions.

Leave a comment

Your email address will not be published.