Bonjour,

j'ai un fichier texte avec le contenu ci-dessous :


Changed the current scope context to 10.0.0.0 scope.

Options for Scope 10.0.0.0:

DHCP Standard Option :
General Option Values:
OptionId : 51
Option Value:
Number of Option Elements = 1
Option Element Type = DWORD
Option Element Value = 691200
OptionId : 3
Option Value:
Number of Option Elements = 1
Option Element Type = IPADDRESS
Option Element Value = 10.0.0.1
OptionId : 66
Option Value:
Number of Option Elements = 1
Option Element Type = STRING
Option Element Value = 10.0.0.12
OptionId : 67
Option Value:
Number of Option Elements = 1
Option Element Type = STRING
Option Element Value = 10.0.0.2
Command completed successfully.
Je souhaiterai extraire une info dans la section OptionId : 51

Le champs : Option Element Value = 691200

Savez vous comment je peux découper ca svp ?

En fait ce chiffre est une durée en minutes que je convertirai en heure par la suite.

Merci d'avance.