Skip to main content
ChinaSupport a posé une question dans #Customer Service
I'm created a batch file to call procsss.bat.  When i put this batch file in "C:\Program Files\salesforce.com\Apex Data Loader 20.0"  folder, this batch can execute successfully. But if this file is in other folder ,for example in "D:\New Folder" , this batch file executed with error message "system could not find the specified path" . How to handle it if i want to put batch file in another folder ? 
1 réponse
  1. 17 sept., 20:12

    Hi ChinaSupport, 

     

    This is usually caused by the batch file using a relative path to process.bat or to the Data Loader files. When you run it from the Data Loader installation folder, Windows can find those files, but it cannot when the batch is launched from D:\New Folder.

    Use the full path to process.bat, or change the working directory before calling it. For example:

    @echo off

    cd /d "C:\Program Files\salesforce.com\Apex Data Loader 20.0"

    call process.bat

    Alternatively, use:

    call "C:\Program Files\salesforce.com\Apex Data Loader 20.0\process.bat"

    The call command is important when invoking another .bat file. 

     

    If your process.bat references other files using relative paths, changing to the Data Loader directory with cd /d is generally the safer approach.

0/9000