@echo off
title Remote Message
set /p input1= "Type the PC name: "
set pcname=%input1%
set /p input2=echo Type a message:
set msgmsg=%input2%
cmd msg /server:%pcname% */time:999 "%msgmsg%"
pause
Above is the batch script
how can I allow user input the pc name and the message he wanted to send remotely thru cmd? I tried 100times above code and keep modify but still not work.
cmdcommand before themsgcommand (what it's supposed to do anyway?).