# How to run a .jl file on Windows 10?

**URL:** <https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547>\
**Category:** New to Julia\
**Tags:** windows\
**Created:** [December 14, 2025, 6:13pm UTC](https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547 "2025-12-14T18:13:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![atBNE](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@atBNE](https://discourse.julialang.org/u/atBNE)\
**Post date:** [December 14, 2025, 6:13pm UTC](https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547/1 "2025-12-14T18:13:18Z")

</div>

I have installed Julia v 1.12.2 using the MSIX App Installer, as recommended. I can run REPL, using the command prompt.  
But I can not run a .jl file: the extension is not recognised. Can someone give us the  
step-by-step to solve this, for WIN10 ? Thank you.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [December 14, 2025, 6:15pm UTC](https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547/2 "2025-12-14T18:15:33Z")

</div>

In the Julia REPL, you can do `include("myfile.jl")` to run whatever code is in that file.

---

<div class="post-metadata">

**Author:** ![atBNE](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@atBNE](https://discourse.julialang.org/u/atBNE)\
**Post date:** [December 14, 2025, 6:19pm UTC](https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547/3 "2025-12-14T18:19:55Z")

</div>

Thank you, but I want to run a file by double-clicking it, without the REPL. Before I removed my previous Julia, I could do it. But no longer.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [December 14, 2025, 9:17pm UTC](https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547/4 "2025-12-14T21:17:30Z")

</div>

Right-click a .jl file in File Explorer, select “Open with” \> “Choose another app,” then “More apps” \> “Look for another app on this PC.” Browse to julia.exe (typically in the bin folder), select it, check “Always use this app,” and confirm. This sets julia.exe as the default handler, running `julia path\to\file.jl` on double-click.

**Disclaimer:** I did not test this to see if it works; I do not currently have access to Windows.

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [December 15, 2025, 1:07am UTC](https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547/5 "2025-12-15T01:07:30Z")

</div>

> [@atBNE](#):
>
> I want to run a file by double-clicking it

I would discourage this based on tradition. Double-clicking source files typically opens a text editor, not run them like isolated executables, and the vast majority of .jl files are not intended for isolated execution and do not work if attempted. This is also far more limited than manually writing the `julia` command, its various switches, and arguments in the shell, or doing the same thing in a batch script that _is_ often double-clicked to run. That said, you can do what’s convenient for you.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [December 15, 2025, 7:56am UTC](https://discourse.julialang.org/t/how-to-run-a-jl-file-on-windows-10/134547/6 "2025-12-15T07:56:52Z")

</div>

It’s preferable to associate the `*.jl` file extension with VS Code editor.  
For double-clicking execution in Windows you may create a `*.bat` file with the following content:

```julia-auto
@ECHO OFF
julia --startup-file=no "full path of *.jl file"
PAUSE

```
