Nice.
Here a suggestion (untested):
- Code: Select all
@echo off
pushd %1
dir /on /b *.jpg *.png *.tga > %1.ifl || pause
popd
1. @echo off - only output sdtout/stderr
2. pushd - better of using this as it basically is a cd /d and makes no assuptions about the current directory.
3. You should be able to use mutiple extension if needed. This probably needs /on for proper sorting.
4. filename is folder name with ifl extension.
5. PAUSE screen in case of trouble.
6. pushd / popd - always go back to the original folder at the end - in case you call from a different batch file for example.