windows howto find

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions windows howto find
# 1  
Old 05-20-2005
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...
# 2  
Old 05-20-2005
set DIR=c:\what\ever
dir %DIR% /s /b | find "*.mp3" /v

should work like your find

gP
# 3  
Old 05-20-2005
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
# 4  
Old 05-20-2005
i've got it:
dir %DIR% /s /b | find ".mp3" /V without the * and a V instead of a v.

thanx!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. AIX

Howto find the data and management IP address

Can anyone help me to find the data and management IP address on a IBM unix server without looking at the /etc/hosts file. sometimes the hosts file may not make it obvious between the data & mgmt ip addresses. thanks (5 Replies)
Discussion started by: amerjit.jhalley
5 Replies

2. Shell Programming and Scripting

Howto get only filename from find command in Linux?

Hi every body! I would like to get only filename in the result of find command in Linux but I don't know howto. Tks so much for your helps. (5 Replies)
Discussion started by: nguyendu0102
5 Replies

3. Windows & DOS: Issues & Discussions

find command in windows

Dear Experts, Please tell me what is the equivalent command of find . -name "*.txt" -print which prints the all the text files in all the folders and sub folders in case of unix. in windows how can i achieve the same output in windows please inform and also find . -name "*.txt" -print|... (2 Replies)
Discussion started by: vin_pll
2 Replies

4. Infrastructure Monitoring

How to find the duplex speed on Windows

Hi, In UNIX, it's very easy to find the duplex speed. But in Windows, is there a easy way to find the duplex speed? I can't go to over 100 servers to find this out, I was wondering if I run one command to do this? Please advice. (2 Replies)
Discussion started by: samnyc
2 Replies

5. Windows & DOS: Issues & Discussions

how to find running databases in windows

Hi, I am working in solaris os.I would like to know how many databases are running in windows. Is there any command like ps -ef|grep pmon in wndows............... Thanks&Regards, Arul (1 Reply)
Discussion started by: arulkumar
1 Replies

6. Windows & DOS: Issues & Discussions

How to find windows user without any password

How to find windows users without any password.. (0 Replies)
Discussion started by: RPG
0 Replies

7. UNIX for Dummies Questions & Answers

Grub can't find Windows XP

grub was working beautifully on my old hard drive. I cloned my drive, and reinstalled grub. My linux partition loads fine, but when I click on Windows, grub simply sends me back to the grub prompt with no error message. On investigating, it appears that grub hasn't loaded the windows kernel. (I... (2 Replies)
Discussion started by: LeoSimon
2 Replies
Login or Register to Ask a Question