FG
💻 Software

A command-line or batch cmd to concatenate multiple files

Fresh5 days ago
Mar 15, 2026618006 views
Confidence Score1%
1%

Problem

I have 50 text files in one directory. Is there a Windows command-line method to concatenate those files into a single file? I am using Windows Vista. I don't want to type the name of all files.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: A command-line or batch cmd to concatenate multiple files

Low Risk

I don't want to type the name of all files. That's easy to be avoided. Open a command prompt in this folder and type the following command: Press Enter. Now you will have all text files in this folder ordered by date ascending merged into a single file called newfile.txt. My ultimate aim is to store the contents of each text file in a separate column of an Excel sheet. Here's a tutorial that may help you to achieve your "ultimate aim": Merge all CSV or TXT files in a folder in one worksheet

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment