I have two batch files to use far manager internal editor and viewer in stand-alone mode. The two batch files are similar, the following is for the viewer
view.cmd
Code: Select all
@echo off
"%ProgramFiles%\Far2\Far.exe" /v "%1"
less.cmd
Code: Select all
@echo off
"%ProgramFiles%\less\less.exe" "%1"
Code: Select all
less textfile.txt
Code: Select all
type textfile.txt | less
Code: Select all
type textfile.txt | "%ProgramFiles%\Far2\far.exe" -v "-"
Code: Select all
@echo off
if "%*" == "" goto :RunPipe
"%ProgramFiles%\less\less.exe" "%1"
goto :End
:RunPipe
"%ProgramFiles%\Far2\far.exe" -v "-"
:End
Is there a way to use it like less?
Thanks in advance for your replies.
Far Manager version 2.0 version 1807 x86
Windows XP pro 32bits SP3
P.S. When far exit the console is in overwrite mode and cursor is hidden. Only with edit the cursor is visible, but in overwrite mode. I solved the overwrite with the command (in the batch files)
Code: Select all
doskey /INSERT