现在我有一个关闭oracle数据库的bat文件,但是每次调用它的时候都会出现拒绝访问,只能右键以管理员运行。现在请问应给给bat里加入什么语句使得调运它是直接可以运行。
set ORACLE_SID=sec
net start oracleservice%ORACLE_SID%
net start OracleDBConsoleorcl
net start OracleOraDb11g_home1TNSListener
在开头行写上
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit这个就是触发UAC提示的命令
温馨提示:答案为网友推荐,仅供参考