How do I run a batch script from within a batch script?

Use CALL as in

CALL nameOfOtherFile.bat

This will block (pause) the execution of the current batch file, and it will wait until the CALLed one completes.

If you don’t want it to block, use START instead.

Get the nitty-gritty details by using CALL /? or START /? from the cmd prompt.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)