Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 917413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:12:27+00:00 2026-05-15T18:12:27+00:00

dir /S /aH doesnt work as it wont delve any deeper inside of unhidden

  • 0

dir /S /aH doesnt work as it wont delve any deeper inside of unhidden folders.

EDIT: turns out it WAS dir /S /aH just there wasnt any hidden or system files or folders within the non hidden files or folders i was testing on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:12:28+00:00Added an answer on May 15, 2026 at 6:12 pm

    This is problematic and the only way I know to solve it is ugly and will give you the result in a “function”:

    @echo off
    setlocal ENABLEEXTENSIONS
    goto main
    
    :EnumAllFiles 
    FOR /F "tokens=*" %%A IN ('dir /B /S /A:-D-H "%~1" 2^>nul') DO call :%2 "%%~A"
    FOR /F "tokens=*" %%A IN ('dir /B /S /A:-DH "%~1" 2^>nul') DO call :%2 "%%~A"
    goto :EOF
    
    :mycallback
    echo file=%~1
    goto :EOF
    
    :main
    call :EnumAllFiles "c:\someDirToSearch" mycallback
    

    (This does not tell the mycallback function about folders since you said you wanted files)

    Edit: It seems like dir /B /S /a-D also works

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a directory /dir inside which there are 3 symlinks to other
'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
When receiving a bug report or an it-doesnt-work message one of my initials questions
string jSFile = ResolveUrl(~/MyProject/JavaScripts/dir/test.js); if (!System.IO.File.Exists(jSFile)) { ... } This code doesn't work and
dir(re.compile(pattern)) does not return pattern as one of the lists's elements. Namely it returns:
url1: /dir-images/no1/top-left.gif url2: /test-1/test-2/test I want to match the path before the last slash
File: /home/USER/DIR/a http://www.here.is.a.hyper.link.net/ /home/USER/DIR/b http://www.here.is.another.hyper.link.net/ Need to remove all the odd lines in this
I use use lib ./DIR to grab a library from a folder elsewhere. However,
I have a directory Dir in which I have about 30 sub-directories. From these
I can chroot with Dir.chroot Dir.chroot(/var/chroot/mychroot) But how can I return back from chroot?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.