implementation
function GetIpMacAddress(): TStringList;
var
files,re:TStringList;
i:integer;
row:String;
begin
re:=TStringList.Create;
files:= TStringList.Create;
winexec('cmd /c ipconfig -all >c:/fastspeeed.txt',SW_HIDE);
sleep(500);
files.LoadFromFile('c:/fastspeeed.txt');
for I := 0 to files.Count -1 do
begin
row:= files.Strings[i];
if ContainsText(row,'Physical Address') then
begin
try
re.Add(RightStr(row,17));
Except
261




被折叠的 条评论
为什么被折叠?



