我的语法错误如下:
batch4.bat ('a00180000017agkAAA','a00180000017agkAAB')
Error: at marked point as
batch4.bat ('a00180000017agkAAA <here errors out>','a00180000017agkAAB')
批处理文件代码:batch4.bat
cls
set classpath="C:\Program Files\salesforce.com\Data Loader\dataloader-29.0.0-uber.jar"
set mainclass=com.salesforce.dataloader.process.ProcessRunner
set confdir="C:\Program Files\salesforce.com\Data Loader\Bkp"
if [%1]==[] goto error
call java -cp %classpath% -Dsalesforce.config.dir=%confdir% %mainclass% process.name=Product_vod__c
sfdc.extractionSOQL="SELECT Id,name FROM Product_vod__c where Id in %1"
goto end
:error
echo Error: missing date argument (must be in 'yyyy-mm-ddThh:mm:ssZ' format)
:end
有什么建议吗?
答案 0 :(得分:0)
尝试像这样调用.bat文件:
batch4.bat a00180000017agkAAA a00180000017agkAAB