The set syntax is specific to Windows batch scripting in the command prompt cmd.exe
.
Within Julia, you just need to manipulate the DEPOT_PATH array:
julia> DEPOT_PATH
3-element Array{String,1}:
"C:\\Users\\kittisopikulm\\.julia"
"C:\\Users\\kittisopikulm\\AppData\\Local\\Programs\\Julia 1.5.0\\local\\share\\julia"
"C:\\Users\\kittisopikulm\\AppData\\Local\\Programs\\Julia 1.5.0\\share\\julia"
julia> DEPOT_PATH[2]
"C:\\Users\\kittisopikulm\\AppData\\Local\\Programs\\Julia 1.5.0\\local\\share\\julia"
julia> DEPOT_PATH[2] = "C:\\JuliaNovo\\Julia 1.5.0\\local\\share\\julia"
"C:\\JuliaNovo\\Julia 1.5.0\\local\\share\\julia"
julia> DEPOT_PATH
3-element Array{String,1}:
"C:\\Users\\kittisopikulm\\.julia"
"C:\\JuliaNovo\\Julia 1.5.0\\local\\share\\julia"
"C:\\Users\\kittisopikulm\\AppData\\Local\\Programs\\Julia 1.5.0\\share\\julia"
My recommendation, however, is that you install Julia to a different location and then permanently set the JULIA_DPEOT_PATH
using these instructions: