Reputation: 35
I am trying to show the user a message telling them the result on screen rather than on cmd.
I have tried msg *
but with the code below it doesn't work for some reason
set MyResult= %MyName% %%i && echo %%i && net user %%i /domain | find /I "password last set"
I want to show the output of this code on a message box.
the hole code is for a password checker system, it's to check when did the user changed there password.
thank you for your help
Upvotes: 1
Views: 59
Reputation: 5548
Here's a quick workaround...
MsgBox.bat
@echo off
set tempofile_msgbox=%random%%random%_msgbox.tmp.vbs
echo Msgbox ^"%*^" >%tempofile_msgbox%
wscript.exe //nologo %tempofile_msgbox%
del %tempofile_msgbox%
Usage
MsgBox.bat Hello World!
Upvotes: 1