--dir does not seem to work with ".\"


When using the command line version, I have noticed that you cannot supply the --dir parameter with the value ".\" to have it just examine the default directory. If you do so, the application fails:

S:\RadOncIT\Projects\UpdateMQAutoLogoutPeriod>fnr --cl --find "RON096" --dir ".\" --fileMask "data.txt"

S:\RadOncIT\Projects\UpdateMQAutoLogoutPeriod>Find And Replace
Copyright (C) 2015 ENTech Solutions

--fileMask required option is missing.

Use 'fnr.exe --cl --help' to see help for this command.


Thumbsy wrote Jun 21, 2016 at 3:58 PM

I know this is old but I just wanted to put this out here for anyone else who might happen to suffer from this problem. In order to tell fnr to look at the default (current) directory, you need to use --dir "%cd%\." instead.

More on that here: https://en.wikipedia.org/wiki/Environment_variable#Windows
Thanks to this user for the solution. I'd be pulling my hair out to if I didn't find this.