修改批处理以发布完整文件名和扩展名

时间:2017-01-30 01:37:17

标签: csv batch-file

如何更改此批处理以便将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

0 个答案:

没有答案