cs_Gwen38
Messages postés7Date d'inscriptionmercredi 25 mai 2005StatutMembreDernière intervention23 juin 2005
-
30 mai 2005 à 18:18
cs_Gwen38
Messages postés7Date d'inscriptionmercredi 25 mai 2005StatutMembreDernière intervention23 juin 2005
-
1 juin 2005 à 12:35
Bonjour
Je cherche actuellement à créé un script pour configurer un machine XP
grace à une appli en Visual Basic. Mais j'ai un problème avec la
configuration de l'adresse DNS.
Voici le code que j'utilise :
Private Declare Function OpenProcess Lib "kernel32" (ByVal
dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal
dwProcessId As Long) As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Const STILL_ACTIVE = &H103
Private Const PROCESS_QUERY_INFORMATION = &H400
'changement d'ip : netsh interface ip set adress
"%NOM_INTERFACE_A_MODIFIER%" static %NOUVELLE_ADRESS% %MASQUE%
%PASSERELLE% %METRIQUE%