# @edit on Windows

**URL:** <https://discourse.julialang.org/t/edit-on-windows/1695>\
**Category:** General Usage\
**Tags:** windows\
**Created:** [January 26, 2017, 6:49am UTC](https://discourse.julialang.org/t/edit-on-windows/1695 "2017-01-26T06:49:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [February 4, 2017, 6:06am UTC](https://discourse.julialang.org/t/edit-on-windows/1695/7 "2017-02-04T06:06:09Z")

</div>

> [@jebej](#):
>
> Not sure if this is still useful, but to open a file with the default program on Windows (without spawning cmd), the command is explorer filename.ext.

Yes this does work. Thanks.  
It seems to allow spaces in filename, but _not_ forward slashes. So maybe requires `realpath`:

```julia
cmd = `explorer $(realpath(path))`

```

Another suggestion was made over on GitHub [`@edit` on Windows using default editor · Issue #20364 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/20364#issuecomment-277393711)  
Indeed the following appears to overcome both the spaces and forward slash issues:

```julia
cmd = `cmd /c start /b "" $path`

```

---

_[View the full topic](https://discourse.julialang.org/t/edit-on-windows/1695)._
