# Loading scripts in VS Code

**URL:** <https://forum.kx.com/t/loading-scripts-in-vs-code/14464>\
**Category:** Community Support\
**Tags:** vscode\
**Created:** [July 11, 2025, 12:49pm UTC](https://forum.kx.com/t/loading-scripts-in-vs-code/14464 "2025-07-11T12:49:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_K](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/allen_k/32/128_2.png) [@Allen\_K](https://forum.kx.com/u/Allen_K)\
**Post date:** [July 11, 2025, 12:49pm UTC](https://forum.kx.com/t/loading-scripts-in-vs-code/14464/1 "2025-07-11T12:49:04Z")

</div>

Been starting to experiment a bit with the VS Code plugin. However, I can’t seem to load in another script to the one I’m working on.

E.g. running “\l script.q” gives me: OS reports: The system cannot find the file specified. The two scripts are in the same folder.

Thanks,  
Allen

---

<div class="post-metadata">

**Author:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [July 11, 2025, 1:02pm UTC](https://forum.kx.com/t/loading-scripts-in-vs-code/14464/2 "2025-07-11T13:02:05Z")

</div>

On Windows try `\cd` or on Linux/Mac `\pwd`.  
These will show you your current working directory, which may not contain your files.

You can list the files in your current directory with:

- `\DIR` on Windows
- `\ls` on Linux/Mac
- `key `:.` which is a native q command which works on all platforms

You can then load your script.

Either using fully qualified paths:

Windows:

```q
\l C:\\Users\\myuser\\myfolder\\script.q

```

Mac:

```q
\l /Users/myuser/myfolder/script.q

```

Linux:

```q
\l /home/myuser/myfolder/script.q

```

Or relative paths:

Windows:

```q
\l myfolder\\script.q

```

Mac:

```q
\l myfolder/script.q

```

Linux:

```q
\l myfolder/script.q

```
