procedure TForm1.Button6Click(Sender: TObject); begin WinExec(Format('cmd.exe /c "echo %s" ',[memo1.lines.text]), SW_SHOW); end;