2020
10-09
10-09
让bat批处理以管理员权限运行的实现方法
1、第一种方法有的电脑是非管理员登录,运行程序时,需要提示是否运行运行。解决方法如下:@echooff%1%2ver|find"5.">nul&&goto:Adminmshtavbscript:createobject("shell.application").shellexecute("%~s0","goto:Admin","","runas",1)(window.close)&goto:eof:Admin//在你的bat开头加上上面的命令即可//下面是你需要执行的命令setpath=%~dp0echoinstallmysqlservice...echo%path%cd%path%\bin\mysqld.exe--remove...
继续阅读 >