Change directory from batch file in Far console

335 Views Asked by At

The command

cd %SOME_DIR%

in Far console changes current directory.

But executing the same command in batch script from Far does nothing. Is it possible to switch directory using batch script in Far?

1

There are 1 best solutions below

0
JosefZ On BEST ANSWER

Far manager runs a batch script (.bat) in a child process and cd command only modifies the environment of the current process. It can't touch the environment of the parent.