Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Access denied when using FIND command  (Read 25603 times)

0 Members and 1 Guest are viewing this topic.

dino2164

    Topic Starter


    Rookie

    Access denied when using FIND command
    « on: March 01, 2009, 01:52:00 PM »
    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!

    idspence



      Rookie
    • Windows is great. Till it sucks
      Re: Access denied when using FIND command
      « Reply #1 on: March 01, 2009, 01:55:51 PM »
      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.
      Ian Spence - Owner of iFX Sound Systems Inc

      Dias de verano

      • Guest
      Re: Access denied when using FIND command
      « Reply #2 on: March 01, 2009, 01:56:29 PM »
      Maybe you don't have write permissions for the folder in which you're trying to create the file JPG.txt.

      dino2164

        Topic Starter


        Rookie

        Re: Access denied when using FIND command
        « Reply #3 on: March 01, 2009, 02:07:22 PM »
        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.

        Dias de verano

        • Guest
        Re: Access denied when using FIND command
        « Reply #4 on: March 01, 2009, 02:11:27 PM »
        What OS and service pack level?

        dino2164

          Topic Starter


          Rookie

          Re: Access denied when using FIND command
          « Reply #5 on: March 01, 2009, 02:16:19 PM »
          customized windows xp sp2

          Dias de verano

          • Guest
          Re: Access denied when using FIND command
          « Reply #6 on: March 01, 2009, 02:20:22 PM »
          customized windows xp sp2

          customized? How?

          dino2164

            Topic Starter


            Rookie

            Re: Access denied when using FIND command
            « Reply #7 on: March 01, 2009, 02:25:29 PM »
            shell looks like it's windows 7, nothing else.

            Dusty



              Egghead

            • I could if she would, but she won't so I don't.
            • Thanked: 75
            • Experience: Beginner
            • OS: Windows XP
            Re: Access denied when using FIND command
            « Reply #8 on: March 01, 2009, 03:15:02 PM »
            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.
            One good deed is worth more than a year of good intentions.

            Dias de verano

            • Guest
            Re: Access denied when using FIND command
            « Reply #9 on: March 01, 2009, 03:21:39 PM »
            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.


            dino2164

              Topic Starter


              Rookie

              Re: Access denied when using FIND command
              « Reply #10 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. :)

              Dias de verano

              • Guest
              Re: Access denied when using FIND command
              « Reply #11 on: March 02, 2009, 02:35:57 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


              dino2164

                Topic Starter


                Rookie

                Re: Access denied when using FIND command
                « Reply #12 on: March 02, 2009, 07:56:08 AM »
                ok, big thanks for help. it works now :)

                Dusty



                  Egghead

                • I could if she would, but she won't so I don't.
                • Thanked: 75
                • Experience: Beginner
                • OS: Windows XP
                Re: Access denied when using FIND command
                « Reply #13 on: March 02, 2009, 01:58:27 PM »
                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
                One good deed is worth more than a year of good intentions.