I am trying to make a simple script to set my gcc variables. like a .bat file.
the variable is set like this:
$env:Path += ";C:\Users\Brett\Compilers\MinGW\bin"
This works fine when I print / paste it into the power shell.
but when I insert myscript.bat in the script and run it through powershell, I get this error:
C:\Users\Brett\Compilers>"$env:Path += ";C:\Users\Brett\Compilers\MinGW\bin"" The filename, directory name, or volume label syntax is incorrect. PS C:\Users\Scruffy\Compilers>
source share