diff --git a/etc/lfcd.cmd b/etc/lfcd.cmd index ce23dd64..e8443d81 100644 --- a/etc/lfcd.cmd +++ b/etc/lfcd.cmd @@ -3,4 +3,5 @@ rem Change working dir in cmd.exe to last dir in lf on exit. rem rem You need to put this file to a folder in %PATH% variable. -for /f "usebackq tokens=*" %%d in (`lf -print-last-dir %*`) do cd %%d +chcp 65001 > nul 2>&1 +for /f "usebackq tokens=*" %%d in (`lf -print-last-dir %*`) do cd /d %%d