Author Topic: Powershell extensions  (Read 2713 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Powershell extensions
« on: September 26, 2016, 06:53:13 PM »
Powershell using PS1 and PSM1, but slick only knows PS1 by default.
It oughta include PSM1.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Powershell extensions
« Reply #1 on: September 26, 2016, 09:21:23 PM »
Added for RC 4

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Powershell extensions
« Reply #2 on: September 26, 2016, 09:41:02 PM »
There are a number of other extensions for Powershell, but I don't know if those apply for scripts or other types of data.


PS1 seems an odd choice.
Is there a PS2? PS3?




Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Powershell extensions
« Reply #3 on: September 26, 2016, 09:52:53 PM »
I didn't see any others

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Powershell extensions
« Reply #4 on: September 26, 2016, 10:02:10 PM »
C:\>assoc | findstr -i powershel
.ps1=Microsoft.PowerShellScript.1
.ps1xml=Microsoft.PowerShellXMLData.1
.psc1=Microsoft.PowerShellConsole.1
.psd1=Microsoft.PowerShellData.1
.psm1=Microsoft.PowerShellModule.1


https://msdn.microsoft.com/en-us/library/dd878324%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

https://x64.us/windows-powershell-filename-extensions

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Powershell extensions
« Reply #5 on: September 26, 2016, 11:09:54 PM »
I didn't think the .ps1xml, .psc1, or .psd1 files actually contain power shell source code.

.ps1xml is XML " The Types.ps1xml file in the Windows PowerShell installation directory ($pshome) is an XML-based text file..."

The sample .psc1 files look like XML.

.psd1 could be powershell code but the Wikipedia page says its a powershell data file. Sure doesn't sound like powershell code to me.