首页 > 解决方案 > 将txt文件与批处理合并

问题描述

@echo off
title Merge Text Files
color 9f
echo Welcome to the program!
set /p loc=Please enter the location of folder where all txt files are located:
cd %loc%
set /p name=Type the name of new merged file (without adding ".txt"):
echo Press enter button to continue!
pause>nul
copy /b *.txt %name%.txt
echo Done!
pause>nul
echo Press any key to exit!
pause>nul
exit

我收到错误,语法不正确

你能告诉我我的错误在哪里吗

标签: batch-processing

解决方案


推荐阅读