batch-filefar

Change directory from batch file in Far console


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?


Solution

  • 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.