I notice that when I pass to scala.bat only the name and extension without the whole path like this :
call scala “%~nx0” %*
then I can have scripts in directories containing spaces in their names.
If i use %0 the path to the script cannot contain spaces.
In both case the name connot contains spaces. scala.bat seem’s to consider part of the name after the space as arguments even with the quotes.
Is there a solution ?