Compiler commande CMD et VBS en EXE
ben314
-
antoine9298 Messages postés 101 Date d'inscription Statut Membre Dernière intervention -
antoine9298 Messages postés 101 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Voila j'ai un script pour reco ma livebox, mais c'est en 2 fichiers : 1 vbs et 1 cmd.
Et je voudrai compilé c'est 2 fichier en 1 seul, un EXE par expleme..
Voici les codes (cmd et vbs)
le vbs :
call Main
sub Wait_IE(nav)
WScript.Sleep(1000)
Do While not nav.ReadyState = 4
Loop
end sub
sub Click_IE (nav,id)
nav.document.getelementbyID(id).click
call Wait_IE(nav)
end sub
sub init(nav)
set nav = CreateObject("InternetExplorer.Application")
nav.Visible = true
nav.navigate "192.168.1.1"
call Wait_IE(nav)
nav.document.All.tags("input").Item("authpasswd").Value = "XXXXX"
nav.document.formu.submit
call Wait_IE(nav)
end sub
sub bosse(nav)
call Click_IE(nav,"rubric2")
call Click_IE(nav,"link3")
call Click_IE(nav,"linkbutt3")
end sub
sub clean(nav)
nav.quit
end sub
sub main
dim nav
call init(nav)
call bosse(nav)
call clean(nav)
end sub
le cmd :
cscript c:\reco.vbs
Je me doutes qu'il vas me falloir une aplli faite pour ca ???
Donc je vous remercie d'avance pour une solution.
Voila j'ai un script pour reco ma livebox, mais c'est en 2 fichiers : 1 vbs et 1 cmd.
Et je voudrai compilé c'est 2 fichier en 1 seul, un EXE par expleme..
Voici les codes (cmd et vbs)
le vbs :
call Main
sub Wait_IE(nav)
WScript.Sleep(1000)
Do While not nav.ReadyState = 4
Loop
end sub
sub Click_IE (nav,id)
nav.document.getelementbyID(id).click
call Wait_IE(nav)
end sub
sub init(nav)
set nav = CreateObject("InternetExplorer.Application")
nav.Visible = true
nav.navigate "192.168.1.1"
call Wait_IE(nav)
nav.document.All.tags("input").Item("authpasswd").Value = "XXXXX"
nav.document.formu.submit
call Wait_IE(nav)
end sub
sub bosse(nav)
call Click_IE(nav,"rubric2")
call Click_IE(nav,"link3")
call Click_IE(nav,"linkbutt3")
end sub
sub clean(nav)
nav.quit
end sub
sub main
dim nav
call init(nav)
call bosse(nav)
call clean(nav)
end sub
le cmd :
cscript c:\reco.vbs
Je me doutes qu'il vas me falloir une aplli faite pour ca ???
Donc je vous remercie d'avance pour une solution.
A voir également:
- Compiler commande CMD et VBS en EXE
- Invite de commande - Guide
- Vbs windows - Accueil - Optimisation
- .Exe - Télécharger - Divers Utilitaires
- Scannow cmd - Guide
- Commande terminal mac - Guide
merci