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

后端 未结 5 679
青春惊慌失措
青春惊慌失措 2021-01-31 13:49

I need to set Maven options in machine. I ran following command and I got \'export\' is not recognized as an internal or external command

export MAV         


        
5条回答
  •  逝去的感伤
    2021-01-31 14:23

    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%

提交回复
热议问题