Just a theoretical question. Would it be possible to have a file that simultaneously acts as a batch file for windows and a bash file for *nix?
The way I think it would work is to have a line that is ignored by bash but in Windows jumps to some batch code.