locked
How to include and call a function defined in other batch file RRS feed

  • Question

  • Hi All,

    I have defined a function in another bat file and I am trying to include that bat file in my parent bat file to call that function.

    But somehow its not working. Here is the snippet

    call C:\test\lib.bat
    call :test

    And it is throwing following message.
    The system cannot find the batch label specified

    But when I copy the same function from lib.bat and paste it in my parent file, it works

    Any idea how to to include and call a function defined in other file

    ~Parag

    Sunday, July 4, 2010 3:03 AM