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

  • SEARCH
  • Home
  • 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 6351445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:00:34+00:00 2026-05-24T22:00:34+00:00

We have a concret directiory (e.g. C:\personal\app\cherry\) where while the runtime of another application

  • 0

We have a concret directiory (e.g. “C:\personal\app\cherry\”) where while the runtime of another application a folder with 2 significant information in its name will be generated randomly.
One of those information will remain constant, everytime the folder is generated. As well the folder will be removed while runtime too, but this is not really relevant in this case.
So there would be a folder with two information split with a simple dot.

Example: \oskdfo.chips\

Where oskdfo is the randomly generated part, and chips will be the constant.
So the constant is the information we need to find this specific directory, hence the other information will never remain the same, a uncommon way to find the actual position of this directory is needed here.

So now I’m searching for a procedure to find this directory with this specific format inside a given path, where also all subdirectories should be included for the search.

  • 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-24T22:00:35+00:00Added an answer on May 24, 2026 at 10:00 pm

    You never said if the directory is created under your application path or if you want to search the entire hard drive.

    Anyway you should use Directory.GetDirectories method to search for it. The return value is an array with all directories that can be found in the specified path.

    You can get all folder in the app path by using the following:

    var folders = Directory.GetDirectories(AppDomain.CurrentDomain.BaseDirectory)
    

    With LINQ you can narrow it down:

    var folders = Directory
        .GetDirectories(AppDomain.CurrentDomain.BaseDirectory)
        .Where(folder => folder.Contains("usuall")
        .ToList();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a concrete class that contains a collection of another concrete class. I
Do you have concrete step to know if an app is using C2DM? According
I have an application that resides in a single .py file. I've been able
I am in the process of designing a web application which will have multiple
I have a C# app which calls anumber of java applications some of which
This is more of a general question as I have found relatively little information
Assume I have several Views in my WPF application that all show a report,
We're using interfaces to represent entity classes in our domain model. We have concrete
Lets say I have a concrete class Class1 and I am creating an anonymous
I currently have 2 concrete methods in 2 abstract classes. One class contains the

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.