Batch pour hostednetwork
Résolu
PiR/D
Messages postés
265
Statut
Membre
-
PiR/D Messages postés 265 Statut Membre -
PiR/D Messages postés 265 Statut Membre -
Bonjour,
Je souhaite faire une commande qui quand je clique dessus démarre le hostednetwork si il est éteint et le stopper si il est allumé.
J'ai trouvé le code suivant mais il ne fait que l'allumer je ne comprends pas pourquoi.
Comment faire ?
Cordialement
Je souhaite faire une commande qui quand je clique dessus démarre le hostednetwork si il est éteint et le stopper si il est allumé.
J'ai trouvé le code suivant mais il ne fait que l'allumer je ne comprends pas pourquoi.
@echo off netsh wlan show hostednetwork|find "Statut"|find "started">nul && goto stop|| goto start :start netsh wlan start hostednetwork pause goto end :stop netsh wlan stop hostednetwork pause goto end
Comment faire ?
Cordialement
A voir également:
- Batch pour hostednetwork
- Fichier batch - Guide
- Batch converter - Télécharger - Photo & Graphisme
- Batch renommer une partie du nom de plusieurs fichiers ✓ - Forum Autoit / batch
- Color batch - Forum Autoit / batch
- Renommer tous les fichiers d'un dossier - Forum Windows
1 réponse
hello
que retourne la commande, quand il est démarré et quand il ne l'est pas
que retourne la commande, quand il est démarré et quand il ne l'est pas
netsh wlan show hostednetwork
PiR/D
Messages postés
265
Statut
Membre
71
Non démarré et Démarré
dubcek
Messages postés
19021
Statut
Contributeur
5 637
essayer
PiR/D
Messages postés
265
Statut
Membre
71
ça marche super merci beaucoup :D