mirror of
https://github.com/tiennm99/MTTools.git
synced 2026-10-14 02:16:29 +00:00
feat: join.bat
This commit is contained in:
1 parent
01e36dc0a0
commit
113f5d7ff3
2 files changed
+30
No files matched your search
@@ -0,0 +1,16 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
if not exist output mkdir output
|
||||
|
||||
for /d %%D in (input\*) do (
|
||||
set "foldername=%%~nxD"
|
||||
if not exist "output\!foldername!.txt" type nul > "output\!foldername!.txt"
|
||||
|
||||
for %%F in ("%%D\*.txt") do (
|
||||
type "%%F" >> "output\!foldername!.txt"
|
||||
echo. >> "output\!foldername!.txt"
|
||||
)
|
||||
)
|
||||
|
||||
echo Process completed.
|
||||
Reference in new issue
Block a user