In Programming in Scala, it gives a description on how to run Scala scripts from batch files (link).
For Windows
::#!
@echo off
call scala %0 %*
goto :eof
::!#
I'm having a problem googling ::#!. What does this mean? I know :: denotes a comment and in Unix #! is a direction to the shell to be used, but what is it exactly here? And the ::!#?
What exactly does %0 %* mean, and is it necessary to express it like this?
Is it possible to run multiple scripts from the same batch file?