Single script to run in both Windows batch and Linux Bash?

后端 未结 11 1925
盖世英雄少女心
盖世英雄少女心 2020-11-28 19:04

Is it possible to write a single script file which executes in both Windows (treated as .bat) and Linux (via Bash)?

I know the basic syntax of both, but didn\'t figu

11条回答
  •  孤街浪徒
    2020-11-28 19:45

    Try my BashWin project at https://github.com/skanga/bashwin which uses BusyBox for most Unix commands

提交回复
热议问题