.ps1 files in preview

Discussion related to "Everything" 1.5.
Post Reply
eswul62
Posts: 167
Joined: Wed Jul 31, 2013 6:07 am

.ps1 files in preview

Post by eswul62 »

Would there be a way to preview .ps1 files
(similar to e.g. .txt files, or .reg files or image files)

Powershell scripts basically are text files.

Maybe I should modify something in Options > Advanced > preview section, but I wouldn't know what.

Thanks!
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: .ps1 files in preview

Post by void »

To preview ps1 files as text:
  • From the Start menu, search for:
    regedit
  • Right click Registry Editor and click Run as administrator.
  • In the Registry Editor, navigate to:
    HKEY_CLASSES_ROOT\.ps1
  • On the right, right click and click New -> String Value.
  • Change the value name to:
    PerceivedType
  • Double click the PerceivedType value and set the data to:
    text
eswul62
Posts: 167
Joined: Wed Jul 31, 2013 6:07 am

Re: .ps1 files in preview

Post by eswul62 »

Super!

Many thanks.
Didn't expect the solution would be a registry tweak.
Bottom line, it worked out fine.

Thanks again!
Post Reply