# Portable Julia

**URL:** <https://discourse.julialang.org/t/portable-julia/45339>\
**Category:** General Usage\
**Created:** [August 21, 2020, 9:50pm UTC](https://discourse.julialang.org/t/portable-julia/45339 "2020-08-21T21:50:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [August 22, 2020, 1:00am UTC](https://discourse.julialang.org/t/portable-julia/45339/6 "2020-08-22T01:00:46Z")

</div>

A Windows batch file. This one starts (a portable) VS code executable  
after setting the depot path.

```julia
@echo off
rem This needs to be changed if you switch versions of Julia
set MyPortableJulia=julia-1.5.0
rem Grab the folder where the portable Julia installation lives
set MyPortableJuliaDir=%~d0%~p0
rem Set Julia depot: all package data goes in here
set MyDepot="%MyPortableJuliaDir%.%MyPortableJulia%-depot"
set JULIA_DEPOT_PATH=%MyDepot%
rem Start VS Code to play with Julia
"%MyPortableJuliaDir%VSCode-win32-x64-1.48.1/Code.exe"

```

---

_[View the full topic](https://discourse.julialang.org/t/portable-julia/45339)._
