Jump to content

CristianoIT

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CristianoIT's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. dear all, i need your help to read / write ini file, the file look like this: [General] a=1;2;3 b=4;5;6 it is easy to read the keys of 'a' or 'b' with this code IniRead ( "filename", "section", "key", "default" ) but i want to read what contain the key separately what is before and after the semicolon then i can able to change it separately. thanks in advanced. Ciao.
  2. thanks now it works with all symbols.
  3. thaaaaanks a lot! it works perfectly but i have to write my mack address like this 00-50-B6-80-3D-6A ) i test it on win 10
  4. thanks Francesco & Subs for your quick response, i didn't expect that. actually i am not a programer so for me it is a little bit difficult to write the code or script, because of that i write you guys here, i am not sure if i am will recieve a help 100% because this is just for programer but it will be so nicce if you help me. going back to my project i found this code it give all the available mac address because for sure normally it will be more than one: #include <Array.au3> $b = _GetMACAddress() _ArrayDisplay($B) Func _GetMACAddress() local $sText, $iPID $iPID = Run(@ComSpec & " /c ipconfig /all", '', @SW_HIDE, 6) While 1 $sText &= StdoutRead($iPID) If @error Then ExitLoop WEnd Return StringRegExp($sText, "(?s)(?i)([\w|\d]{2}\-[\w|\d]{2}\-[\w|\d]{2}\-[\w|\d]{2}\-[\w|\d]{2}\-[\w|\d]{2})", 3) EndFunc this code will give a list in all the available macs in at the computer, but how can i compare this list with my mac adress (00:65:v7:p0:3d:90) then how to make make my next command work in case fals & truth? this is the point that i dont know because i am not a programer. in case true: IniWrite("C:\Clients.text", "Summary", "Files", "yes")find_mac.au3 in case false: IniWrite("C:\Clients.text", "Summary", "Files", "no") i hope you could help me in this.
  5. Dear All , i need your help to complete my project, i want script to check if if this mac address ( 00:65:v7:p0:3d:90) present in this computer and then the script will proceed the command: in case true: IniWrite("C:\Clients.text", "Summary", "Files", "yes") in case false: IniWrite("C:\Clients.text", "Summary", "Files", "no") my idea was to find all the mac address then compare it with this 00:65:v7:p0:3d:90 then one of the above command will proceed, but i didnot succeed to find the right script, because of that i asking your help. thanks guys.
×
×
  • Create New...