Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows command line alternative for "export"

I've bought a book about Machine Learning, and it needs an environment setup. The code in the book is

$ export ML_PATH="$HOME/ml"
$ mkdir -p $ML_PATH

but as far as I know, this are Linux/UNIX commands, so there are alternatives for Windows?

like image 867
Seth Avatar asked Mar 30 '18 13:03

Seth


People also ask

Does export command work in Windows?

The export combined with the import command allows you to batch install applications on your PC. The export command is often used to create a file that you can share with other developers, or for use when restoring your build environment.

How do I export a variable from the command-line in Windows?

To set an environment variable, use the command " export varname=value ", which sets the variable and exports it to the global environment (available to other processes). Enclosed the value with double quotes if it contains spaces. To set a local variable, use the command " varname =value " (or " set varname =value ").

What command is export?

Export is a built-in command of the Bash shell. It is used to mark variables and functions to be passed to child processes. Basically, a variable will be included in child process environments without affecting other environments.


2 Answers

set

(Answers must be 30 chars minimum. Oh yes they must.)

like image 151
andydavies Avatar answered Oct 17 '22 17:10

andydavies


SET ML_PATH="$HOME/ml"
SET mkdir $ML_PATH`
like image 40
basheer alwaely Avatar answered Oct 17 '22 18:10

basheer alwaely