The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Google UNIX.COM


Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find windows user without any password RPG Windows & DOS: Issues & Discussions 0 09-05-2007 10:35 PM
system () howto ?? britney UNIX for Dummies Questions & Answers 0 04-05-2006 09:36 PM
Grub can't find Windows XP LeoSimon UNIX for Dummies Questions & Answers 2 12-08-2005 08:18 AM
howto tamemi UNIX for Dummies Questions & Answers 6 09-18-2003 04:58 AM
How to find 1 day old file on Windows for Active Perl lcfoo Shell Programming and Scripting 4 02-21-2003 09:37 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-20-2005
penguin-friend's Avatar
Registered User
 

Join Date: Nov 2001
Location: Paris, France
Posts: 55
windows howto find

Hi all!

How would you do the equivalent of find ! -type f..... under windows?
Meaning, how under a directory could you find all files except those named *.mp3 for example?

the command under linux would be:
find $DIR ! -name "*.mp3" what would be that under windows?

Thanx for any ideas...
Reply With Quote
Forum Sponsor
  #2  
Old 05-20-2005
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 718
set DIR=c:\what\ever
dir %DIR% /s /b | find "*.mp3" /v

should work like your find

gP
Reply With Quote
  #3  
Old 05-20-2005
penguin-friend's Avatar
Registered User
 

Join Date: Nov 2001
Location: Paris, France
Posts: 55
Quote:
Originally Posted by pressy
set DIR=c:\what\ever
dir %DIR% /s /b | find "*.mp3" /v

should work like your find

gP
That gave me exactly the contrary of what i want. i'd like to see alll files except the mp3s'...
Please note the "!" in the shell command
Reply With Quote
  #4  
Old 05-20-2005
penguin-friend's Avatar
Registered User
 

Join Date: Nov 2001
Location: Paris, France
Posts: 55
i've got it:
dir %DIR% /s /b | find ".mp3" /V without the * and a V instead of a v.

thanx!!!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0