Batch Script to Run as Administrator

后端 未结 12 2085
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 11:18

I\'m writing a client/server checking program but it needs to run as Administrator.

I want this to run silently on my network and users, and I don\'t want the \"Run

12条回答
  •  死守一世寂寞
    2020-12-13 11:45

    Create a shortcut and set the shortcut to always run as administrator.

    How-To Geek forum Make a batch file to run cmd as administrator solution:

    Make a batch file in an editor and nameit.bat then create a shortcut to it. Nameit.bat - shortcut. then right click on Nameit.bat - shortcut ->Properties->Shortcut tab -> Advanced and click Run as administrator. Execute it from the shortcut.

提交回复
热议问题