コマンドプロンプトで
cd /d "c:\フォルダのパス"
dir|findstr .jpg>jpgリスト.txt