|
Answer» Hi
I was USED long back a dos command to create a txt File contains file names inside a folder. i forgot that command now.
for Exmple:
it is folder "Sept-4" contains 40 JPG files name from 1.jpg to 40.jpg
i gave a command in dos like "filename" "prn" and location to create the file which is i forgot, im not remmeber what is EXACTLY it is.
it will creat file.txt inside text like below
1.jpg 2.jpg 3.jpg to 40.jpg
Please help me Ok there is probably an example of this that you could SEARCH the forums for, but I'll make one anyway.
Quote @echo off
:: FILE TO OUTPUT set file=filename.txt
:: FOLDER TO GO THROUGH set folder=full path to folder
if exist "%file%" ( echo "%file%" already exists. It will be deleted if you continue. pause >nul del "%file%" cls )
for /f "usebackq delims=" %%I in (`dir /a:-d /b "%folder%\*.jpg"`) do ( >>"%file%" echo %%I )
echo Done. notepad %file%
|