Windows-.Bat编辑文本文件缺少编辑片段?

Windows-.Bat编辑文本文件缺少编辑片段?,windows,batch-file,Windows,Batch File,我有一个.bat文件,该文件旨在创建一个文本文件,其中包含可用于执行JS文件的参数,这里是我的ok 您将看到的第一个.Bat文件是SETUP.Bat,这将创建用于启动的第二个.Bat文件。但是当我创建第二个.bat文件(.txt)时,它遗漏了我的一些编辑,我不知道为什么 SETUP.bat @echo off break>"C:\Users\%username%\Desktop\test\START.txt" echo set /p content=<"C:\Users\%usern

我有一个.bat文件,该文件旨在创建一个文本文件,其中包含可用于执行JS文件的参数,这里是我的ok

您将看到的第一个.Bat文件是SETUP.Bat,这将创建用于启动的第二个.Bat文件。但是当我创建第二个.bat文件(.txt)时,它遗漏了我的一些编辑,我不知道为什么

SETUP.bat

@echo off
break>"C:\Users\%username%\Desktop\test\START.txt"
echo set /p content=<"C:\Users\%username%\Desktop\test\lettercount.txt" >> C:\Users\%username%\Desktop\test\START.txt
echo call node "C:\Users\%username%\Desktop\test\index.js" content >> C:\Users\%username%\Desktop\test\START.txt
@echo off
break>"C:\Users\%username%\Desktop\test\START.txt"
echo cd C:\Users\%username%\Desktop\test
echo set /p content=<lettercount.txt >> C:\Users\%username%\Desktop\test\START.txt
echo call node "C:\Users\%username%\Desktop\test\index.js" content >> C:\Users\%username%\Desktop\test\START.txt
@echo关闭
中断>“C:\Users\%username%\Desktop\test\START.txt”
echo set/p content=>C:\Users\%username%\Desktop\test\START.txt
echo调用节点“C:\Users\%username%\Desktop\test\index.js”内容>>C:\Users\%username%\Desktop\test\START.txt
当它被创建时,它会丢失
“C:\Users\%username%\Desktop\test\START.txt”
echo cd C:\Users\%username%\Desktop\test
echo set/p content=>C:\Users\%username%\Desktop\test\START.txt
echo调用节点“C:\Users\%username%\Desktop\test\index.js”内容>>C:\Users\%username%\Desktop\test\START.txt
它仍然显示为
set/p content=
,而不是它应该是的东西


有什么帮助吗?

根据我的评论,简化了

@Echo关闭
(Echo Set/P“content=“^”%UserProfile%\Desktop\test\START.txt)
您需要退出
您想要用插入符号
回音
^>