Jump to content

MaxuN

Members
  • Posts

    2
  • Joined

  • Last visited

About MaxuN

  • Birthday 09/06/1983

Profile Information

  • Location
    Barcelona

Recent Profile Visitors

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

MaxuN's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, Try it: Run(RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\MSCONFIG.EXE","")) This Script read the real dir from any program (EXE) and run it. See you !!! P.S.: Sorry my english
  2. Hi, Try this function that I have just implemented. This function returns an array of MAC addresses of the active cards. #cs ---------------------------------------------------------------------------- AutoIt Version: v3.3.4.0 Author: MaxuN Returns: Array[] Script Function: Returns an array of MAC addresses of the active cards #ce ---------------------------------------------------------------------------- #RequireAdmin Func _GetMACAddress() Local $objWMIService = ObjGet("winmgmts:\\localhost\root\CIMV2") Local $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=true", "WQL", 0x10 + 0x20) Local $i = 0, $Before = "" Local $MACs[1] For $objItem in $colItems Local $item = $objItem.MACAddress If $Before <> $item Then $MACs[$i] = $item $Before = $item $i += 1 EndIf If (UBound($MACs)-1) = $i Then ReDim $MACs[UBound($MACs)] Next Return $MACs EndFunc I'm waiting your replys. P.S.: Sorry my English. P.S.1: How can I upload an "Attached File" ?. Thks
×
×
  • Create New...