Hi All,
I am baffled :)
If I open a command prompt, change to the directory which contains plink.exe and run the command:
plink -pw password command
The command works no problem, but if I do following in a TProcess I get a "flash" of a black window, then nothing!
Process := TProcess.Create(nil);
try
sPSFTPFile := IncludeTrailingBackslash(ExtractFilePath(ParamStr(0))) +
'plink.exe';
Process.Executable := sPSFTPFile;
S := '-pw ' + Password + ' ' + Username + '@' + IPAddress + ' ' +
Command;
Process.Parameters.Add(S);
Process.Options := Process.Options + [poWaitOnExit];
Process.Execute;
finally
Process.Free;
end;Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130808/6504b423/attachment.html>
