安装设置(图)

09/15 08:10:15 来源网站:seo优化-辅助卡盟平台

如题:

例如 D:\@x265Encode\安装设置 - 复制.bat

文件夹含有@bat批处理脚本命令bat批处理脚本命令,批处理文件名含有空格,这两个条件同时具备的时候

windows命令运行bat脚本_bat批处理脚本命令_bat脚本打开cmd命令

这个批处理就无法获取以管理员权限运行,表现为一跳而过,后面的任何命令都无法执行,但如果去掉获取管理员权限的命令,后面的命令式可以正常执行的

@Echo OFF

windows命令运行bat脚本_bat脚本打开cmd命令_bat批处理脚本命令

%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c ""%~dpnx0"" ::","","runas",1)(window.close)&&exit cd /d "%~dp0"

或者

windows命令运行bat脚本_bat批处理脚本命令_bat脚本打开cmd命令

@Echo OFF

setlocal EnableDelayedExpansion

windows命令运行bat脚本_bat批处理脚本命令_bat脚本打开cmd命令

Pushd %~dp0 & cd /d "%~dp0"

%1 %2

bat批处理脚本命令_windows命令运行bat脚本_bat脚本打开cmd命令

mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :runas","","runas",1)(window.close)&goto :eof

:runas

都无法运行,求教

    暂无相关资讯
安装设置(图)