我对这个话题做了很多研究,我找不到答案。假设我将此作为文件:
@echo off
cls
echo Hello World!
echo %ALLCONTENTS%>Helloworldduplicate.bat
但我希望副本也有重复的代码。例如,
@echo off
cls
echo hello!
pause
ENTER CODE THAT COPIES EVERYTHING, INCLUDING THIS LINE, HERE
exit
请帮忙
由于
答案 0 :(得分:0)
如JosefZ评论或:
@echo off
cls
echo hello!
pause
type %0>Helloworldduplicate.bat
exit