# Running liquibase in .cmd file

**URL:** <https://forum.liquibase.org/t/running-liquibase-in-cmd-file/6400>\
**Category:** General Discussion\
**Created:** [January 12, 2022, 2:08pm UTC](https://forum.liquibase.org/t/running-liquibase-in-cmd-file/6400 "2022-01-12T14:08:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubhe](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dubhe](https://forum.liquibase.org/u/dubhe)\
**Post date:** [January 12, 2022, 2:08pm UTC](https://forum.liquibase.org/t/running-liquibase-in-cmd-file/6400/1 "2022-01-12T14:08:23Z")

</div>

I created a cmd file with these 3 commands, but only the first is executed…

```auto
liquibase --outputFile=test_snapshot.json snapshot --url=jdbc:postgresql://192.168.2.243:5432/test

liquibase diffChangeLog --url=jdbc:postgresql://192.168.2.243:5432/test1 --referenceUrl=offline:postgresql?snapshot=test_snapshot.json

liquibase --url=jdbc:postgresql://192.168.2.243:5432/test1 update

```

and other two rows are not executed even if the first command didn’t fail  
Why ?

Thanks

---

<div class="post-metadata">

**Author:** ![MikeOlivas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/mikeolivas/32/183_2.png) [@MikeOlivas](https://forum.liquibase.org/u/MikeOlivas)\
**Post date:** [April 13, 2022, 8:48pm UTC](https://forum.liquibase.org/t/running-liquibase-in-cmd-file/6400/2 "2022-04-13T20:48:28Z")

</div>

Hi @dubhe Thanks for joining our community.

Is this a windows command file or a linux command file?  
If it is a windows command file you may need to wrap the lines with call statements.  
If this is linux then each of the lines should execute.
