如何更改此批处理以便将filename.ext而不仅仅是filename添加到csv文件中?
for %%a in (*.csv) do call :addID "%%~Na" "%%a"
goto :EOF
:addId
@echo off
for /f "usebackq delims=" %%b in (%2) do (
> #.csv echo %%b
goto :next
)
for /r %F in (*.pdf) do @echo %~nxF > %filename%
:next
for /f "usebackq skip=1 delims=" %%b in (%2) do (
>> #.csv echo objects/%filename%.pdf,%filename%,%DATE%%%b
)
move #.csv %2