1.

Solve : Access denied when using FIND command?

Answer»

Hello,
I have a problem when using FIND COMMAND.
Every time I use it, cmd.exe returns Access Denied statement!

Here goes tiny snippet of code I use in my batch:

find ".jpeg" D:\Documents\User\Somefolder >> JPG.txt

I tried using FIND on any drive and it's always the same!
HELP!try going CD D:\Documents\User\Somefolder (or whatever the dir is) adn that type FIND JPG.txt (or whatever it is) this may WORK.Maybe you don't have write permissions for the folder in which you're trying to create the file JPG.txt.
that rather isn't possible, since i'm administrator and the folder is inside my documents. i tried using find without >>, and it doesn't work. and that ERROR happens when i use find on ANY folder.What OS and service pack level?customized windows xp sp2 Quote from: dino2164 on March 01, 2009, 02:16:19 PM

customized windows xp sp2

customized? How?
shell looks like it's windows 7, nothing else.Find to locate files in a folder? Shouldn't the OP be using Dir?

Isn't Find used to locate a text string in a file or text piped from another command?

Quote
Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[liNE]] "string" [[drive:][path]filename[ ...]]

/V Displays all lines NOT containing the specified string.
/C Displays only the count of lines containing the string.
/N Displays line numbers with the displayed lines.
/I Ignores the case of characters when searching for the string.
/OFF[liNE] Do not skip files with offline attribute set.
"string" Specifies the text string to find.
[drive:][path]filename
Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.
Quote from: Dusty
Find to locate files in a folder? Shouldn't the OP be using Dir?

I did wonder about that. I would do a malware check and maybe sfc as well.

So i'm using the wrong command?
What's the correct DOS command for searching for specific files then?
Also, thanx for the help. Quote from: dino2164 on March 02, 2009, 01:44:30 AM
So i'm using the wrong command?
What's the correct DOS command for searching for specific files then?
Also, thanx for the help.

To find all the (for example) files with the extension .jpg in a folder

DIR *.jpg

Type DIR /? at the prompt for full details

Use web resources such as Google and this site to find reference material

ok, big thanks for help. it works now A list of permitted commands is available here but be aware that some are restricted to XP Pro only, some have switches only available when using the RECOVERY Console whilst others are available only after installing them from the Resource Kit.

Google for details.

Good luck


Discussion

No Comment Found