我有一个csv文件,我需要将其值读取为一个字符串。
这就是我现在所拥有的:
setLocal EnableDelayedExpansion set FULL_STR="" for /f "usebackq tokens=1-3 delims=," %%a in ("%CSV_PATH%") do ( set !FULL_STR!=!FULL_STR!%%a%%b%%c ) echo !FULL_STR! //returns ""
有人能帮我吗?
set FULL_STR=""
设置 FULL_STR 到 "" .
FULL_STR
""
set "FULL_STR="
设置 满街 到 空的 .
满街
set !FULL_STR!=!FULL_STR!%%a%%b%%c
设置名为[的当前内容]的变量 满街 ]到[目前的内容] 满街 ][文件中的两个字段]
set "FULL_STR=!FULL_STR!%%a%%b%%c"
设置变量 满街 到 [the current contents of 满街 ][the two fields from the file]
[the current contents of
][the two fields from the file]