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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:28:30+00:00 2026-06-10T03:28:30+00:00

what i am trying to achieve is a search feature that will allow the

  • 0

what i am trying to achieve is a search feature that will allow the user to put in the name of a file and it will find that file and save the file’s path as a variable so I’m able to use the file path later on is this possible i have not been able to find any information on this

  • 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-10T03:28:32+00:00Added an answer on June 10, 2026 at 3:28 am

    Write a batch file like:

    @echo OFF
    
    for /f %%F in ('dir %2\%1 /s /b') do 
        (
            <nul (set /p msg=%%~nxF )
            for /f %%G in ('dir %3\%%~nxF /s /b') do 
                (
                    if exist %%G 
                        (
                            @echo found at %%G
                        ) 
                )
         )
    

    Now here:

    %1 is the user provided file name

    %2 is the user provided directory to search first.

    %3 is the user provided directory to search second.

    To save the details into a text file use:

    FindAll MyFile.txt d:\dir1 d:\dir2 > MyFile_report.txt 2>&1
    

    The <nul (set /p) trick will output text to the console without a new line

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

Sidebar

Related Questions

I am trying to achieve dynamic META information so that it will allow META
I tried to search forum topics to find a tutorial that will guide me
I'm trying to achieve something apparently simple but I couldn't find any answer, neither
I'm currently working on a search box for my site that will hopefully use
I'm working with ExtJS4 and trying to build a search feature using a form.
I am trying to achieve fuzzy phrase search (to match misspelled words) by using
Hei guys. What I am trying to achieve is have my search bar behind
I'm trying to achieve a right-hand-floated box, with a variable list of tables or
I'm trying write a Ruby script that checks if user credentials are valid using
I'm trying to achieve something that Im not sure how to do it. I'm

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.