Page 1 of 1

Find command not working!?

Posted: 15 Aug 2015 04:03
by TheHunterManX
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

Re: Find command not working!?

Posted: 15 Aug 2015 04:19
by foxidrive
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.

Re: Find command not working!?

Posted: 15 Aug 2015 06:18
by Meerkat
Hmm...What is the %path%? Maybe there are problems there. :)

Type this in CMD:

Code: Select all

path


Meerkat

Re: Find command not working!?

Posted: 15 Aug 2015 08:28
by penpen
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

Re: Find command not working!?

Posted: 24 Aug 2015 00:31
by TheHunterManX
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!