Batch file 在pbcs应用程序中编写批量脚本上载多个文件

Batch file 在pbcs应用程序中编写批量脚本上载多个文件,batch-file,Batch File,要求一次加载12个使用相同DLR的文件。目前它是手动完成的。使用的代码如下所示: @ECHO OFF rem for %%a in ("D:\Files\Integration\Inbound\DATA\GPW_*.*") do (set filename=%%a for %%a in ("D:\Files\Integration\Inbound\DATA\GPW_Dec-21.csv" "D:\Files\Integration\Inboun

要求一次加载12个使用相同DLR的文件。目前它是手动完成的。使用的代码如下所示:

@ECHO OFF

rem for %%a in ("D:\Files\Integration\Inbound\DATA\GPW_*.*") do (set filename=%%a
for %%a in ("D:\Files\Integration\Inbound\DATA\GPW_Dec-21.csv" "D:\Files\Integration\Inbound\DATA\GPW_Nov-21.csv") do ( for %%a in ("D:\Files\Integration\Inbound\DATA\GPW_*.*") do set filename=%%~na

rem for %%a in ("D:\Files\Integration\Inbound\DATA\GPW_*.*" ) do ( for %%a in ("D:\Files\Integration\Inbound\DATA\GPW_*.*") do set filename=%%~na
echo %%~na 
set filename=%%~na
set vYear=%filename:~8%
set vMonth=%filename:~4,7%
set mydate=%date:~10,4%_%date:~4,2%_%date:~7,2%
rem GPW_Dec-21
set vPeriod=%filename:~4,6%
echo %vPeriod%
我无法获取文件名。如果完成了,我想其他一切都会解决的

//rem线是我尝试过的不同的东西

提前谢谢你的帮助