'export' is not recognized as an internal or external command

'export' command is valid only for unix shells. In Windows - use 'set' instead of 'export'


I tried set, didn't work for me, in the end:

 $env:

worked. But you have to put your string in quotes like:

$env:SPOTIFY_CLIENT_ID="XXXX"

SET does work as mentioned above.

In case anyone wants to know how to use the data stored in variable use %variable%. if you want to print value in command prompt use echo %variable%

ex: SET myVar = testsite.co.uk

To print in command prompt:

echo %myVar%

To use in code, just use %myVar%

Tags:

Maven