qshinoの日記

Powershell関係と徒然なこと

2017-03-17から1日間の記事一覧

confirm させない方法 by powershell

confirm システムに変更を加えるコマンド、例えばIPアドレス削除では、デフォルトでconfirm メッセージがでる。 これを止める方法は、 -confirm:$false 参考 https://blogs.msdn.microsoft.com/powershell/2006/12/14/confirmpreference/

初心者向けWindows.Forms by PowerShell

初心者向けWindows.Forms by PowerShell 参考 https://social.technet.microsoft.com/wiki/contents/articles/25911.how-to-add-a-powershell-gui-event-handler-part-1.aspx

WPF by PowerShell 事始め

初歩的なWPF by PowerShell xml -> reader -> ShowDialog の流れ 参考 https://blogs.technet.microsoft.com/heyscriptingguy/2014/08/01/ive-got-a-powershell-secret-adding-a-gui-to-scripts/

Windows Service by PowerShell

Windowsサービス 関連コマンド net start/stop sc.exe 参考 https://msdn.microsoft.com/ja-jp/magazine/mt703436.aspx

.gitignore

git

.girignore 適用範囲 サブディレクトリにも適用される。 但し、より深いディレクトリが優先される。 よって、最上階ディレクトリの .gitignoreに基本ルールを記載すると便利。 “/” の意味 文字列の最後に"/“ -> ディレクトリ それ以外 -> ファイル or ディレ…

wpf例外処理

wpf

Wpf例外処理 UIスレッドで発生した例外処理。 例外発生時、Try-catchより先に受け取るAppDomain.CurrentDomain.FirstChanceException UIスレッド DispatcherUnhandledException e.Handled = $true により例外処理済みにできる。 バックグラウンドジョブ Unob…