Advertisement
beryindon

basic

Jun 16th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.40 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   CMD1: String;
  4.   username,password,host: string;
  5. begin
  6.   username:=Edit1.Text;
  7.   password:=Edit2.Text;
  8.   host:=Edit3.Text;
  9.   CMD1:=extractfilepath(application.exename)+'Plink.exe -v -N -C -D 1080 ' +username+ '@' +host+ ' -P 22 -pw ' +password;
  10.   DosCommand1.CommandLine:=CMD1;
  11.   DosCommand1.OutputLines :=Memo1.Lines;
  12.   DosCommand1.Execute;
  13. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement