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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:54:34+00:00 2026-06-15T01:54:34+00:00

I have no programming experience but would like to do the following: I would

  • 0

I have no programming experience but would like to do the following:

I would like to be able to select what files I want to merge from up to ten folders. Once the selection was made…let’s say a,b & d the program would then merge a,b & d from folders 1-10 and then merge the output from the ten folders into 1 file…..

Is this possible and what would be the best way to program this?

Folder # 1

File A – Merge
File B – Merge
File C
File D – Merge

Folder # 2

File A – Merge
File B – Merge
File C
File D – Merge

Folder # 3

File A – Merge
File B – Merge
File C
File D – Merge

Folder # 4

File A – Merge
File B – Merge
File C
File D – Merge

Folder # 10

File A
File B
File C
File D

  • 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-15T01:54:35+00:00Added an answer on June 15, 2026 at 1:54 am

    This is what you want to do?:

    @Echo OFF
    
    :: By Elektro H@cker
    
    Set "folder=C:\Users\Administrador\Desktop\Test"
    
    Echo Selected Folder: "%FOLDER%"
    Set /P "files=Select files to merge (Example: "File1.txt" "File2.txt" "File3.txt") >> "
    
    
    For %%@ in (%files%) Do (
        For /R "%FOLDER%" %%# in (*) DO (
            IF /I "%%@" EQU "%%~nx#" (call Set "Files_to_merge=%%Files_to_merge%% "%%#"+")
            )
        )
    )
    
    
    Copy /A %Files_to_merge:~0,-1% ".\output_file.txt"
    pause&Exit
    

    PS: Remember to change the format of Copy command, /A for text files, /B for binary files.

    CMD Output:

    >Selected Folder: "C:\Users\Administrador\Desktop\Test"
    >Select files to merge (Example: "File1.txt" "File2.txt" "File3.txt") >>
    
    >file1.txt file2.txt file3.txt
    
    C:\Users\Administrador\Desktop\Test\file1.txt
    C:\Users\Administrador\Desktop\Test\Nueva carpeta\file1.txt
    C:\Users\Administrador\Desktop\Test\file2.txt
    C:\Users\Administrador\Desktop\Test\Nueva carpeta\file2.txt
    C:\Users\Administrador\Desktop\Test\file3.txt
    C:\Users\Administrador\Desktop\Test\Nueva carpeta\file3.txt
            1 file(s) copied(s).
    
    Presione una tecla para continuar . . .
    

    Output_file.txt contents:

    Content of "File1.txt" in first dir
    
    Content of "File1.txt" in firstsub-dir
    
    Content of "File2.txt" in first dir
    
    Content of "File2.txt" in firstsub-dir
    
    Content of "File3.txt" in first dir
    
    Content of "File3.txt" in firstsub-dir
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to hear from people who have real world programming experience in
I am learning linux programming and want to do the following. I would like
I'm new to C# and don't have any programming experience. But I've finish a
Hi I have some experience with programming but I'm not very good with pointers.
I am new to VBA but have previous experience with PHP programming logic and
I am already familiar with Silverlight programming but not have any experience with GIS.
I am not a programmer, but would like to know how the following task
Disclaimer: I am new to python and django but have experience programming in Drupal.
i know vb.net, but have had no experience at all with web programming. i
I have a programming experience with statically typed languages. Now writing code in Python

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.