2016-07-24 102 views
0

我總是通過使用命令提示符以管理員身份運行來運行命令。我想讓日期文件運行CMD中的命令行

netsh wlan stop hostednetwork 
enter 
netsh wlan start hostednetwork 
enter 

所以請我怎樣才能使dat文件,我只要按一下這個命令行使用管理員自動運行

回答

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.