Is it possible to make a fake msgbox error message with a bat file?

OSFirst Maker 0 Reputation points
2023-08-16T19:57:41.1966667+00:00

I've been trying to make a fake error message (just like the one in the vbs scripts) with a bat/cmd file yet I could not. I've tried searching online but to no avail. Is there a way to do so? Just asking.

Edit: I'd also like it if it could run the command repeatedly forever.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-08-17T09:19:35.0266667+00:00

    Hi,

    I didn't find a way to do that with a bat/cmd script, but it can be easily done in powershell.

    [System.Windows.Forms.MessageBox]::Show('Error Message','Error',0,16)
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.