正确写法:
shellexecute(Handle, 'open', PChar('netsh'),pchar('interface ip set address 本地连接 static 10.10.0.31 255.255.255.0 10.0.0.6 1'),nil,sw_show);
shellexecute(Handle, 'open', PChar('netsh'),pchar('interface ip set dns 本地连接 static 10.0.0.7 primary'),nil,sw_show);