Computing.Net > Forums > Programming > find command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

find command

Reply to Message Icon

Name: gha1d
Date: May 27, 2009 at 14:30:19 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

Guys, How do i find a specifec file type with a specific file size. Eg: mp3 files that are larger than 3MB



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 27, 2009 at 15:52:07 Pacific
Reply:

@echo off > newfile & setLocal EnableDelayedExpansion

for /f "tokens=* delims= " %%a in ('dir/s/b e:\*.mp3') do (
if %%~Za gtr 3000000 echo %%a >> newfile
)


=====================================
If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More


VB Script Multiple FTP Batch File



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: find command

Find command www.computing.net/answers/programming/find-command/18454.html

return code for find command www.computing.net/answers/programming/return-code-for-find-command/11684.html

CMD script find and replace text www.computing.net/answers/programming/cmd-script-find-and-replace-text/15412.html