If you know what the file(s) original file name was (such as if they were cataloged in Lightroom) find the first file by earliest capture time order. 0007851.nef) on the recovery drive/folder. Say you have a bunch of files recovered from a crashed drive. This technique is useful for older cameras such as my old Nikon D2Xs that did not store the original file number in the ExIF data. List all files in a directory, display filenumber and sort by filenumber ExIF FieldĮxiftool.exe "-filenumber" -fileOrder filenumber *.nefĮxiftool.exe -model "-filenumber" -fileOrder filenumber *.nefĮxiftool.exe "-FileName To extract all files in the current directory and place the extracted files in the same directory, use the following command: please note the "dot" at the end of the line meaning Present Working DirectoryĮxiftool -r -jpgfromraw -b -ext nef -w %d%f.jpg. Where SRCDIR is the base directory with your NEF's (without a drive specification!), and DSTDIR is a destination directory somewhere on a good disk. If you want to change the JPG filename, use any suffix you want on the commandline like this:Įxiftool -r -jpgfromraw -b -ext nef -w DSTDIR/%d%f_anysuffix.jpg SRCDIR Extract large JPEG images from all NEF's and write them in the same hierarchy in the destination folder.Įxiftool -r -jpgfromraw -b -ext nef -w DSTDIR/%d%f.jpg SRCDIR