I would like to use a TStringList to parse the output from "ipconfig /all".
If I use AddStrings, the entire return string ends up in the first element. I have tried to use LoadFromStream but the compiler gives me
no matching member function for call to 'LoadFromStream'
and
candidate function not viable: no known conversion from 'String' (aka 'System::UnicodeString') to 'System::Classes::TStream *' for 1st argument
Any ideas on how I can get the String into a Stream, or another way to get the return String into my TStringList?
TStringList *IPConfig = new TStringList;
IPConfig->AddStrings(ExecuteExternalFile("ipconfig", "/all", false)); //everything returned ends up in one element defeating the purpose of using a TStringList
IPConfig->LoadFromStream(ExecuteExternalFile("ipconfig", "/all", false)); //won't compile