OK i nead to find all specific files on my hdd and save it's names to *.txt file. Explorer finder lack this simple feature and i have not seen any console command for this problem.
dir /b /s > c:\filelist.txt
- or -
dir myfiles*.* /b /s > c:\desiredlist.txt
- or -
dir myfiles*.* /b /s > c:\desiredlist.txt
dir /b /s > c:\filelist.txt
- or -
dir myfiles*.* /b /s > c:\desiredlist.txt
- or -
dir myfiles*.* /b /s > c:\desiredlist.txt
you rule.
one MOre Question , this one displays full paths, how can i display only file names ???
do some code to parse the file maybe?
:-D I like the extended syntax!
Note:
@FOR /F "usebackq" %%I IN (`dir myfile*.* /b /s`) DO @ECHO %%~nI >> filelist.txt
Note:
[*]if you want to run it from command-line, replace each "%%" with "%"
[*]works only under winXP or so
[*]the info is always appended at the of filelist.txt