我想让日期文件运行CMD中的命令行
问题描述:
我总是通过使用命令提示符以管理员身份运行来运行命令。我想让日期文件运行CMD中的命令行
netsh wlan stop hostednetwork
enter
netsh wlan start hostednetwork
enter
所以请我怎样才能使dat文件,我只要按一下这个命令行使用管理员自动运行
答
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.