This project has moved and is read-only. For the latest updates, please go here.

Specifying path

Jul 24, 2014 at 7:08 PM
Edited Jul 24, 2014 at 7:09 PM
  1. It would add to fnr's flexibility without losing anything if a single pathname could optionally be specified instead of both path (dir) and name (FileMask) separately. Thus a path specified as C:\Some Directory\AParticularFile.txt or C:\Some Directory*.txt, with dir omitted or blank, would be split internally and used as if C:\Some Directory\ and AParticularFile.txt had been entered separately in GUI or CLI. It would simplify CMD batch files a little. (I often use CMDs to process a single file.)
  2. One issue I had, somewhat related to the above, was running fnr in the current directory. I tend to copy fnr.exe where I need it, and work there. I tried various options that work in many contexts such as ".", ".\DATA" (to use the same directory structure on different drives) without success. I don't remember what else I tried, it took a while. Anyway, the result:
To make fnr work on the current directory, use switch
--dir "%cd%"