batch file - netsh wlan show drivers (combine 2 commands in 1) -


i want add these 2 commands:

netsh wlan show drivers | find "administrator" && msg * "please run administrator" && exit netsh wlan show drivers | find "hosted network supported  : yes" || msg * "your wireless network adapter not supported." 

to make 1 single command 1 netsh wlan show drivers still functions 2 above, if 1st command processed, 2nd not done. please me.

netsh wlan show drivers && (netsh wlan show drivers | findstr /i /c:"hosted network supported" || echo not supported) || echo please run admin 

i don't have wlan think works. it's brackets go.

&& if previous command exit 0. || if previous command exit non zero.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -