@echo off
if "%1"=="/?" goto help
if "%1"=="" goto err
echo suru=InputBox("%2","%3")>>%tmp%\inp.vbs
echo wscript.echo(suru)>>%tmp%\inp.vbs
for /f %%a in ('cscript //nologo %tmp%\inp.vbs') do set %1=%%a
del %tmp%\inp.vbs
goto end
:help
echo XSET 返回变量 显示内容 显示标题
echo 如:xset text 输入你的内容: XSET标题
goto end
:err
echo 参数使用错误!
echo 请使用/?参数查看帮助。
:end