我有以下脚本,但它似乎只是回显整个脚本而不是实际运行
set myRoot = %systemroot%
set myFont = "\fonts\myfontname-Light.ttf"
set myFull = %myRoot% %myFont%
IF EXIST {%myFull%} (
echo "hi"
) ELSE (
cscript //NoLogo //B font.vbs
)
任何提示都将非常感谢
汤姆
答案 0 :(得分:2)
@echo off
set "myRoot=%systemroot%"
set "myFont=\fonts\myfontname-Light.ttf"
set "myFull=%myRoot%%myFont%"
IF EXIST "%myFull%" (
echo "hi"
) ELSE (
cscript /NoLogo /B font.vbs
)