我想让Date文件在CMD中运行命令行

时间:2016-07-24 10:13:42

标签: cmd command

我总是使用命令提示符运行命令,并以管理员身份运行。

netsh wlan stop hostednetwork
enter
netsh wlan start hostednetwork
enter

所以请问我如何制作我只需单击的数据文件,此命令行将自动与管理员一起运行

1 个答案:

答案 0 :(得分:0)

Create files on your computer such as DONETSTOP.bat and DONETSTART.bat
Create a shortcut to each of them on your desktop
Select one of the shortcuts
Press Alt-Enter Choose the "Advanced" button
Check the "Run as administrator" checkbox
Do this for the other shortcut
Double click on either of these shortcuts to run them.