Find command not working!?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
TheHunterManX
Posts: 54
Joined: 14 Aug 2015 05:59

Find command not working!?

#1 Post by TheHunterManX » 15 Aug 2015 04:03

Hello and thank you for looking at this. I am quite new to batch (2 weeks) and I am having problems with my Find command. Each time I type find it will only look for the file or dictionary.
Ex:
find /?
find: '/?': No Such file or dictionary.

find /v test.txt
find: '/v': No Such file or dictionary.
J:\Decoding\test.txt


It is very annoying.
Also I dont know if this will affect it but I have disabled my search assistant because it wasn't working

Computer:XP SP3

Screenshots:
Image
Image
Image

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Find command not working!?

#2 Post by foxidrive » 15 Aug 2015 04:19

TheHunterManX wrote:Hello and thank you for looking at this. I am quite new to batch (2 weeks) and I am having problems with my Find command. Each time I type find it will only look for the file or dictionary.
Ex:
find /?
find: '/?': No Such file or dictionary.


You have a find.bat file that is being executed or a third party find.exe file somewhere.

You may not be aware, but if you press ALT Printscreen then it copies only the active window image to the clipboard.

Meerkat
Posts: 89
Joined: 19 Jul 2015 02:27
Location: Philippines

Re: Find command not working!?

#3 Post by Meerkat » 15 Aug 2015 06:18

Hmm...What is the %path%? Maybe there are problems there. :)

Type this in CMD:

Code: Select all

path


Meerkat

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Find command not working!?

#4 Post by penpen » 15 Aug 2015 08:28

If foxidrive is right, then you may execute this command from commandline to find the additional find.com/exe/bat:

Code: Select all

for %a in (find.bat find.com find.exe) do @echo(%~f$PATH:a
(Double percentage characters when running from batch.)

If you get three blank lines, then Meerkat is right.

penpen

TheHunterManX
Posts: 54
Joined: 14 Aug 2015 05:59

Re: Find command not working!?

#5 Post by TheHunterManX » 24 Aug 2015 00:31

Thanks all who have helped! I found my problem:
Picture 1:
Image
Picture 2:
Image
Picture 3:
Image

Also thank you foxidrive for the ALT+PrintPG

foxidrive- there was a 3rd party app from devkitpro (find.exe)
Meerkat- %path% worked (It showed me the dictionary it was in)
penpen- Thanks to the "for %a in (find.bat find.com find.exe) do @echo(%~f$PATH:a", It showed me there was a extra find.exe)

Thank you again!

Post Reply