The command line switch for Far Manager to open in a specified directory

command linefar-manager

What is the command line switch for Far Manager to open in a specified directory?

Best Answer

There is no explicit switch for this, you just append the desired directory name.

Citing the built-in help (from FAR 1.7x, FAR 3.x has additional features in this respect):

It is possible to specify at most two paths to folder, files or archives in the command line. The first path applies to the active panel, the second path - to the passive one:

  • if a folder or archive is specified, FAR will show its contents
  • if a file is specified, FAR will change to the folder where it resides and place the cursor on the file, if it exists.

So, assuming your Windows is installed in c:\windows, you can start FAR with

far c:\windows c:\

and it will start with c:\windows in the active panel and c:\ in the passive one.