How do I issue a warning message from PowerShell that does not require user input
I am running a batch script that invokes a .exe file, if the file is not present then I wish to issue a warning, similar to the system.windows.messagebox class, but without the need for the user to respond, because I want the batch script to continue to run without pausing for user interaction. I tried this via powershell PowerShell -Command "Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show('Application not found','Warning',1,48)" But this requires user response, and I can't seem to find any way around this as the message box class does not seem to have the option
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.