-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtxt_join.bat
More file actions
35 lines (28 loc) · 752 Bytes
/
txt_join.bat
File metadata and controls
35 lines (28 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
echo ***********************
echo * *
echo * TXT_JOIN.BAT *
echo * CODED BY 0x776b7364 *
echo * *
echo ***********************
echo,
echo TXT_JOIN should be used in conjunction with TXT_SPLIT
echo TXT_JOIN file should be placed in the same directory as target folder
echo.
set /p folder=Enter target folder:
if not exist %folder% (
echo Error, folder does not exist.
pause
goto eof)
set /p file=Enter target output file:
if exist %file% (
echo Error, file already exists.
pause
goto eof)
dir /b %folder% >> dir.txt
FOR /F "tokens=*" %%a in (dir.txt) DO call :1 %%a
goto :eof
:1
set string=%*
set nstring=%string:~4%
echo %nstring% >> output.txt