zoukankan      html  css  js  c++  java
  • 批处理启动应用程序(win)

    @echo off
    net session >nul 2>&1
    if not "%errorLevel%" == "0" (
      echo Oops: This tools must run with administrator permissions!
      echo it will popup the UAC dialog, please click [Yes] to continue.
      echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%getadmin.vbs"
      echo UAC.ShellExecute "%~s0", "%*", "", "runas", 1 >> "%temp%getadmin.vbs"
      "%temp%getadmin.vbs"
      exit /b 2
    )
    
    start   programFullPath
    
    pause

    1.权限

    2.启动

    3.命令行窗口

  • 相关阅读:
    java 28
    java 28
    java 27
    java 27
    java 27
    java 27
    java 27
    java 27
    java 27
    java 27
  • 原文地址:https://www.cnblogs.com/amwuau/p/9287407.html
Copyright © 2011-2022 走看看