Skip to content

Instantly share code, notes, and snippets.

@turboBasic
Last active September 9, 2017 00:16
Show Gist options
  • Save turboBasic/3e0e2ee2a972be65a22c8e11efbd365a to your computer and use it in GitHub Desktop.
Save turboBasic/3e0e2ee2a972be65a22c8e11efbd365a to your computer and use it in GitHub Desktop.
[Get-DataSectionExamples] in Powershell - short summary #powershell
DATA msgs { ConvertFrom-StringData @'
Err01 = Attention!
Err02 = File not found!
'@
}
DATA exportVariables {
'variableName1'
'variableName2'
}
DATA info {
@(1, 2, "text")
@{ a = 0x1; b = "great"; c ="script" }
}
$exportVariables | ConvertTo-JSON
$info | ConvertTo-JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment