What is the command line switch for Far Manager to open in a specified directory?
Solution 1
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.
Solution 2
You could also use a dot as an argument to indicate "current folder". If far. exe
is globally available by, lets say, including it in the PATH
environmental variable executing
far .
will open Far Manager and display the folder from which it was opened.
Related videos on Youtube
Craig
Updated on September 18, 2022Comments
-
Craig almost 2 years
What is the command line switch for Far Manager to open in a specified directory?