呵呵,握手一下,前两周也发过mshta计算字符长度的想法,不过是直接显示,没用write- @echo off
- %1 set /p str=请输入字符串
- %1 mshta vbscript:createobject("wscript.shell").run("""%~nx0"" :: "^&len("%str%"))(window.close)
- %1 exit
- echo * "%2"
- pause
复制代码
- @echo off
- set /p str=请输入字符串
- mshta vbscript:msgbox(len("%str%"))(window.close)
- pause
复制代码
|