TShell.WorkingDirectory#
Diretório de trabalho lógico entregue ao provider de shell.
Declaração#
property WorkingDirectory: String read write;Exemplo#
program Example(Config: TConfig);
uses Odisseia.Process;
var Shell: TShell;
begin
Shell := TShell.Create;
Shell.Executable := Config.GetString('SHELL_EXECUTABLE');
Shell.Command := 'echo hello';
Shell.WorkingDirectory := 'workspace';
WriteLn(Shell.WorkingDirectory)
end.O host interpreta e valida o valor; não presuma acesso irrestrito ao filesystem local.