CONNEXION DÉCONNEXION INTERNET

cs_Logan Messages postés 99 Date d'inscription mercredi 2 janvier 2002 Statut Membre Dernière intervention 9 juin 2008 - 27 avril 2003 à 21:20
toussaim Messages postés 5 Date d'inscription vendredi 11 mars 2005 Statut Membre Dernière intervention 1 octobre 2006 - 1 oct. 2006 à 09:30
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/6864-connexion-deconnexion-internet

toussaim Messages postés 5 Date d'inscription vendredi 11 mars 2005 Statut Membre Dernière intervention 1 octobre 2006
1 oct. 2006 à 09:30
cs_Jackboy Messages postés 757 Date d'inscription vendredi 7 septembre 2001 Statut Membre Dernière intervention 19 juin 2008
30 sept. 2006 à 15:52
osus xp pro la deconnexion fonctionne mais pas la connexion ! Pour le fichier rnaui.dll voici un lien pour le downloader http://www.dll-files.com/dllindex/dll-files.shtml?rnaui

Quelqu'un peut me dire s'il a réussi a faire fonctionner la connexion sous xp ?

Merci
toussaim Messages postés 5 Date d'inscription vendredi 11 mars 2005 Statut Membre Dernière intervention 1 octobre 2006
22 juin 2006 à 15:56
toussaim Messages postés 5 Date d'inscription vendredi 11 mars 2005 Statut Membre Dernière intervention 1 octobre 2006
22 juin 2006 à 15:55
Pour une activation du reseau local (connexion internet via lan)

en VBS: modifier eventuellement le nom de la connexion et du repertoire.


Const ssfCONTROLS =3

sConnectionName ="Local Area Connection"

sEnableVerb ="En&able"
sDisableVerb ="Disa&ble"

set shellApp =createobject("shell.application")
set oControlPanel =shellApp.Namespace(ssfCONTROLS)

set oNetConnections =nothing
for each folderitem in oControlPanel.items
if folderitem.name ="Network Connections" then
set oNetConnections =folderitem.getfolder: exit for
end if
next

if oNetConnections is nothing then
msgbox "Couldn't find 'Network and Dial-up Connections' folder"
wscript.quit
end if

set oLanConnection =nothing
for each folderitem in oNetConnections.items
if lcase(folderitem.name) =lcase(sConnectionName) then
set oLanConnection =folderitem: exit for
end if
next

if oLanConnection is nothing then
' msgbox "Couldn't find '" & sConnectionName & "' item"
wscript.quit
end if

bEnabled =true
set oEnableVerb =nothing
set oDisableVerb =nothing
s ="Verbs: " & vbcrlf
for each verb in oLanConnection.verbs
s =s & vbcrlf & verb.name
if verb.name =sEnableVerb then
set oEnableVerb =verb
bEnabled =false
end if
if verb.name =sDisableVerb then
set oDisableVerb =verb
end if
next

'debugging displays left just in case...
'
msgbox s ': wscript.quit
msgbox "Enabled: " & bEnabled ': wscript.quit

'not sure why, but invokeverb always seemed to work
'for enable but not disable.
'
'saving a reference to the appropriate verb object
'and calling the DoIt method always seems to work.
'
if bEnabled then
' oLanConnection.invokeverb sDisableVerb
oDisableVerb.DoIt
else
' oLanConnection.invokeverb sEnableVerb
oEnableVerb.DoIt
end if

'adjust the sleep duration below as needed...
'
'if you let the oLanConnection go out of scope
'and be destroyed too soon, the action of the verb
'may not take...
'
wscript.sleep 1000
bouazza92 Messages postés 25 Date d'inscription jeudi 22 décembre 2005 Statut Membre Dernière intervention 16 août 2006
28 déc. 2005 à 13:10
Marche t'il sous windows 2000 ?
cs_milo2009 Messages postés 180 Date d'inscription vendredi 4 juillet 2003 Statut Membre Dernière intervention 8 août 2011 1
22 oct. 2005 à 11:52
sais tu comment faire pour activé une connection au reseau local ?
azerty99_71 Messages postés 55 Date d'inscription samedi 4 septembre 2004 Statut Membre Dernière intervention 9 décembre 2005
11 janv. 2005 à 22:01
ouais domage ...

Enfin, j'ai entendu parler d'un code utilisant rasdial ou qlq chose dans le genre ...

++
cs_Unreal Messages postés 89 Date d'inscription vendredi 20 décembre 2002 Statut Membre Dernière intervention 26 mars 2006
22 oct. 2004 à 17:41
Il manque rnaui.dll ...
cs_guyvdv Messages postés 101 Date d'inscription samedi 16 mars 2002 Statut Membre Dernière intervention 19 mai 2011 1
26 juil. 2003 à 18:16
Dommage, Win2000 marche presque, Le dll rnaui.dll que j'ai telecharge n'est pas le meme que celui de Arsena, L'error est que la function n'est pas trouvé
Peu tu m'aider Arsena

Guy van der Velden
cs_guyvdv Messages postés 101 Date d'inscription samedi 16 mars 2002 Statut Membre Dernière intervention 19 mai 2011 1
26 juil. 2003 à 18:15
Dommage, Win2000 marche presque, Le dll rnaui.dll que j'ai telecharge n'est pas le meme que celui de Arsena, L'error est que la function n'est pas trouvé
Peu tu m'aider Arsena

Guy van der Velden
hackassia Messages postés 1 Date d'inscription mercredi 18 juin 2003 Statut Membre Dernière intervention 18 juin 2003
18 juin 2003 à 20:32
ben pareil marche pas sous xp, j'ai l'impression qu'il me sort des resultats differents lors de l'execution des dll je continu les tests et je vous dis quoi
cs_Logan Messages postés 99 Date d'inscription mercredi 2 janvier 2002 Statut Membre Dernière intervention 9 juin 2008
27 avril 2003 à 21:20
marche pas ( WINXP )