cmd执行kettle任务
set PATH=D:\software\data-integration
rem 进入 Kitchen.bat所在目录
cd %PATH%
rem 作业(job)文件路径和日志文件路径
rem 执行kitchen执行job,并写入日志
%PATH%\kitchen.bat /file:%PATH%\jobs\作业-设备同步.kjb /level:Basic>>%PATH%\logs\kettle_%date:~0,4%%date:~5,2%%date:~8,2%.log
执行转换
set PATH=D:\software\data-integration
rem 进入 pan.bat所在目录
cd %PATH%
rem 作业(job)文件路径和日志文件路径
rem 执行pan执行转换,并写入日志
%PATH%\pan.bat /file:%PATH%\jobs\设备表.ktr /level:Basic>>%PATH%\logs\kettle_%date:~0,4%%date:~5,2%%date:~8,2%.log