■ VisualBasic #11:コンピュータ名の取得

2020年10月8日木曜日

VisualBasic

t f B! P L
自身のコンピューター名を取得するには?
前回記事:VisualBasic #10:TimeSpan型


方法1:Environment.MachineName プロパティ
Console.WriteLine("Environment.MachineName: {0}", Environment.MachineName)
  

方法2:My.Computer.Name プロパティ
Console.WriteLine("My.Computer.Name: {0}", My.Computer.Name)
  



次回記事:VisualBasic #12:相対パスから絶対パスへの変換


VisualBasic学習

その他の記事

QooQ