I'm trying to get my Network Adapters into a ComboBox. Currently I have it saving the data to my Clipboard and display the Clipboard in the ComboBox, but it is all on 1 line. How do I remove the extra spaces and returns from the clipboard and have each entry on a new line clean?
Data Set, which needs spaces and returns removed:
NetConnectionID
NIC-1
NIC-2
NIC-3
NIC-4
Code: Select all
RunWait, %ComSpec% /c wmic nic get netconnectionID|clip,,hide
Gui, Add, ComboBox, w300 vddl, %Clipboard%||
Gui, Add, Button, Default, OK
Gui, Show
Return
ButtonOK:
Gui, Submit
MsgBox, %ddl%
guiclose:
ExitApp
end::
exitapp
return