Wie mache ich bei windows 10 eine msgbox?

2 Antworten

Die Frage ist nicht genau genug. Windows 10 ist keine Programmiersprache und es gibt etliche Programmiersprachen, mit denen du eine MessageBox anzeigen lassen kannst.

PowerShell:

[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.MessageBox]::Show("Nachricht")

Batch (über PowerShell):

powershell "[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms');[System.Windows.Forms.MessageBox]::Show('Nachricht');"

Java:

JOptionPane.showMessageDialog(null, "Nachricht");

C# (.NET):

MessageBox.Show("Nachricht");

VBA:

MsgBox "Nachricht"

powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('Meine Message', 'Achtung !!!', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}"

Zum Beispiel so, oder meintest Du nur innerhalb TCC ?