728x90
반응형
728x170
Newtonsoft.Json.dll0.62MBsetting.json0.00MB
▶ setting.json
{
"MainFormLeft" : 52,
"MainFormTop" : 52,
"MainFormWidth" : 920,
"MainFormHeight" : 690,
"MainFormState" : "Maximized",
"SkinStyle" : "The Bezier",
"RibbonMinimized" : true,
"SidebarStyle" : "NavigationPane",
"SidebarWidth" : 100,
"SidebarCollapsable" : false,
"SidebarVisible" : true
}
728x90
▶ 코드
$JSON = (Get-Content "d:\setting.json" -Encoding UTF8 | Out-String)
[Reflection.Assembly]::LoadFile("d:\Newtonsoft.Json.dll")
$Setting = [Newtonsoft.Json.Linq.JObject]::Parse($JSON)
$Setting.Item("MainFormLeft" ).ToString()
$Setting.Item("MainFormTop" ).ToString()
$Setting.Item("MainFormWidth" ).ToString()
$Setting.Item("MainFormHeight" ).ToString()
$Setting.Item("MainFormState" ).ToString()
$Setting.Item("SkinStyle" ).ToString()
$Setting.Item("RibbonMinimized" ).ToString()
$Setting.Item("SidebarStyle" ).ToString()
$Setting.Item("SidebarWidth" ).ToString()
$Setting.Item("SidebarCollapsable").ToString()
$Setting.Item("SidebarVisible" ).ToString()
728x90
반응형
그리드형(광고전용)
'PowerShell' 카테고리의 다른 글
[POWERSHELL] Invoke-Expression 명령 : 로컬 컴퓨터에서 명령 또는 수식 실행하기 (0) | 2021.04.07 |
---|---|
[POWERSHELL] Remove-Item 명령 : -Path 스위치를 사용해 파일 삭제하기 (0) | 2021.04.07 |
[POWERSHELL] Write-Host 명령 : -NoNewline 스위치 사용하기 (0) | 2021.04.07 |
[POWERSHELL] Get-Command 명령 : 닷넷 프로그램 버전 구하기 (0) | 2021.04.07 |
[POWERSHELL] Test-Path 명령 : -Path 스위치를 사용해 파일 존재 여부 구하기 (0) | 2021.04.07 |
[POWERSHELL] .NET Newtonsoft.Json을 사용해 JSON 파일 파싱하기 (0) | 2021.04.02 |
[POWERSHELL] ConvertFrom-Json 명령 : JSON 파일 파싱하기 (0) | 2021.04.02 |
[POWERSHELL] Add-Type 명령 : -TypeDefinition/-Language 스위치를 사용해 닷넷 상속 클래스 사용하기 (0) | 2021.04.02 |
[POWERSHELL] 체질량 지수 계산하기 (0) | 2021.04.02 |
[POWERSHELL] Write-Debug 명령 : -Message 스위치 사용하기 (0) | 2021.04.01 |
[POWERSHELL] Start-Sleep 명령 : -Seconds 스위치를 사용해 지정 기간 동안 실행 중단하기 (0) | 2021.04.01 |
댓글을 달아 주세요