pascalabcnet/ReleaseGenerators/ExecHide.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

19 lines
479 B
ObjectPascal

{$apptype windows}
var p: System.Diagnostics.Process;
i: integer;
begin
try
p := new System.Diagnostics.Process();
p.StartInfo.UseShellExecute := false;
p.StartInfo.CreateNoWindow := true;
p.StartInfo.FileName := CommandLineArgs[0];
p.StartInfo.Arguments := '"'+CommandLineArgs[1]+'"';
for i:=2 to CommandLineArgs.Length-1 do
p.StartInfo.Arguments := p.StartInfo.Arguments + ' ' + '"'+CommandLineArgs[i]+'"';
p.Start;
p.WaitForExit;
except
end;
end.