可以用 cscript 调用 vbs:- @echo off
- for /f "delims=" %%a in ('cscript /nologo base64.vbs') do set "jmname=%%a"
- echo 取得的 jmname=%jmname%
- pause
复制代码 base64.vbs 写成:- Set enc = CreateObject("Base64Lib.Base64Object")
-
- realname = InputBox("请输入姓名:", "+++++++++++++++++++++++++++++", "请在这里输入姓名")
- 'if realname="" then wscript.quit
- jmname = enc.Base64Encode(realname, 1, 1)
- wscript.echo jmname
复制代码
|