Over the last few months I have noticed a big increase in the number of instances of cmd.exe showing up in Windows Task Manager. I never knew what created them but there seemed to be more and more the longer since a reboot. I sort of suspected it might have been Lightroom, but I wasn't sure. Well, now I know.
When I export an image I run a batch job to extract the Exif information from the image and write it to a file which I use later as part of my web site. The batch job calls another batch job for each file being exported:
- Code: Select all
for %%A in (%*) do call "C:\atj.com.au\exiftool" %%A
I realised that after exporting I had an extra cmd.exe running. If I removed the post processing action, I didn't get the extra cmd.exe. I then added exit to the batch job:
- Code: Select all
for %%A in (%*) do call "C:\atj.com.au\exiftool" %%A
exit
and that fixed the problem.
I'm not sure if the extra cmd.exe happens because of the nested batch jobs or simply a quirk of Lightroom, but it works now.