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 8815641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:25:48+00:00 2026-06-14T04:25:48+00:00

Is there a way to move down one directory using ms-dos? i.e scripts and

  • 0

Is there a way to move down one directory using ms-dos? i.e scripts and batch files. Like i know you can move up one directory using ..\ but i need to move down one directory without knowing the name of the directory. Is there a command for that?

so if i was in
c:\new
i want a command that will get me to
c:\new\test\testing

without using the name test

Thanks

  • 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-06-14T04:25:49+00:00Added an answer on June 14, 2026 at 4:25 am

    When you move up a directory, there can only be one parent. So it makes sense to have a convenient method to do this – CD ..

    But when you move down there can be any number of children to move to. How can you possibly know which one to move to if you don’t know the name?

    It is easy to iterate the children directories, at which point you could CD for example. You can use GOTO to break out of the loop so that you arbitrarily go to the first folder found.

    for /d %%F in (*) do (
      cd "%%F"
      goto :break
    )
    :break
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to move a sequential set of commits from one (local)
Is there a simple way to move an element inside its own parent? Like
I hope to know if there is a way to move row to the
Is there a way I can programatically move my screens in relation to each
Is there any way to know for events when move a window with window.open?.
Is there a way we can access the android phone app and move it's
Is there any way to move an object forward in Three.js? Maybe I should
is there a way to move the data from an excel sheet to a
Is there a way to move an item of say id=10 as the first
Is there a way to move the content from a std::string into a std::vector?

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.