プログラミングメモ

思った通りに動いてくれて嬉しかったこと

Environment.GetEnvironmentVariable()

VB.Netよりコマンドを実行

概要 VB.Netよりコマンドを実行し、結果をTextで返します。 Function Runcmd(strcmd As String) As String 'Processオブジェクト Dim proc As New System.Diagnostics.Process() With proc.StartInfo 'ComSpecパスの取得 .FileName = System.Environment.Get…