编辑:我刚刚忘记了这一行中的%:
for /f "eol=; tokens=2,3* delims=, " %i in (%cd%\JournalEntries\%filename4%.txt) do @echo %i %j %k但现在我遇到了一个新问题。当它运行时,循环不会显示文件的内容,而是只显示字母j和k,假设是从@echo %i之后的点开始。输出:j k
:read2
echo All files are created in a MM-DD-YYYY format, meaning all files are read the same way.
echo Once the file opens, it will give you 30 seconds to read before resetting back to the next question.
timeout 5
set /p filename4= "What is the date of the file you would like to open (mm-dd-yyyy)?
for /f "eol=; tokens=2,3* delims=, " %i in (%cd%\JournalEntries\%filename4%.txt) do @echo %i %j %k
timeout 30发布于 2019-03-18 23:09:20
你在这一部分是不是缺少双引号:
set /p filename4= "What is the date of the file you would like to open (mm-dd-yyyy)?https://stackoverflow.com/questions/55224264
复制相似问题