我做出来的<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> cmd, par, fil, dir: PChar;<br>begin<br> cmd := 'open';<br> fil := 'rasdial.exe';<br> par := PChar('pdsu' + ' ' + 'vpnuser' + ' ' + '123');<br> dir := 'C:/WINDOWS/system32';<br> ShellExecute(Self.Handle, cmd, fil, par, dir,SW_SHOWMINNOACTIVE);<br>end;