Batch Script to Run as Administrator

后端 未结 12 2084
没有蜡笔的小新
没有蜡笔的小新 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:57

    Following is a work-around:

    1. Create a shortcut of the .bat file
    2. Open the properties of the shortcut. Under the shortcut tab, click on advanced.
    3. Tick "Run as administrator"

    Running the shortcut will execute your batch script as administrator.

提交回复
热议问题