我有一個 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 ""
任何人都可以幫我做嗎?
uj5u.com熱心網友回復:
set FULL_STR=""
設定FULL_STR為""。
set "FULL_STR="
設定FULL_STR為空。
set !FULL_STR!=!FULL_STR!%%a%%b%%c
FULL_STR將一個名為 [the current contents of ]的變數設定為 [the current contents of FULL_STR][the two fields from the file]
set "FULL_STR=!FULL_STR!%%a%%b%%c"
將變數設定FULL_STR為[the current contents ofFULL_STR][the two fields from the file]
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/452895.html
標籤:批处理文件
上一篇:重新生成身份驗證令牌
