January 6th, 2016

PowerTip: Determine Which Files in ISE Are Saved

Doctor Scripto
Scripter

Summary: Easily identify which files have been saved in the PowerShell ISE.

Hey, Scripting Guy! Question How can I see which of my open files in the Windows PowerShell ISE been saved?

Hey, Scripting Guy! Answer To show a list of files that have been saved, run the following code in the ISE.

$psISE.PowerShellTabs.files | where { $_.IsSaved } | Select-Object DisplayName

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.