• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

scripting software to search for random files

quartz0

Member
I want to be able to search for say 50 random images from some directories in xp pro, there any scripting software that would do this ? thanks.
 
If you had Cygwin, or potentially certain programs from MinGW, installed, I'd say:
Code:
sh -c "/bin/find [path] -name '*.jpg' -print | /bin/sort -R | head -50"
 
Late to the party as usual but maybe something like this (Windows 7):
Code:
C:\>for %i in (Monet, Notebook, Blue_Gradient) do dir /s %i.jpg /p

where Monet, Notebook, Blue_Gradient, etc. are the specific file names you are looking for.
 
A much more efficient solution (please excuse the previous which scans the entire directory structure for each file name):
Code:
C:\>dir /s /b /p *.jpg | findstr /i "Monet Notebook Blue_Gradient"
 
Back
Top