# Doubt about loading scripts

**URL:** <https://forum.kx.com/t/doubt-about-loading-scripts/10210>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [July 30, 2015, 2:01am UTC](https://forum.kx.com/t/doubt-about-loading-scripts/10210 "2015-07-30T02:01:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos\_siestrup](https://avatars.discourse-cdn.com/v4/letter/c/53a042/32.png) [@carlos\_siestrup](https://forum.kx.com/u/carlos_siestrup)\
**Post date:** [July 30, 2015, 2:01am UTC](https://forum.kx.com/t/doubt-about-loading-scripts/10210/1 "2015-07-30T02:01:00Z")

</div>

Hello, I started with Q recently and while I was trying to load a script, I realized that

When I &nbsp;trying to use load like this:

path: `:/User/home/desktop/file.q

\l path

or

path: “/User/home/desktop/file.q”

\l path

it doesnt work, I thought i was typeing the path wrong until I tried:

\l /User/home/desktop/file.q

and it worked. I would like to know how can I use load with the path in a variable since its not working with symbol or string type variables.

---

<div class="post-metadata">

**Author:** ![rory\_ororke](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@rory\_ororke](https://forum.kx.com/u/rory_ororke)\
**Post date:** [July 30, 2015, 7:19am UTC](https://forum.kx.com/t/doubt-about-loading-scripts/10210/2 "2015-07-30T07:19:00Z")

</div>

path:“/User/home/desktop/file.q”

system "l ",path

Thanks Rory

---

<div class="post-metadata">

**Author:** ![roman\_v\_mishin1](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@roman\_v\_mishin1](https://forum.kx.com/u/roman_v_mishin1)\
**Post date:** [July 30, 2015, 2:21pm UTC](https://forum.kx.com/t/doubt-about-loading-scripts/10210/3 "2015-07-30T14:21:00Z")

</div>

X-Mailer: Becky! ver. 2.69 [en]\l is not a q expression, so you can not refer to variable contents within its scope.As reference states [http://code.kx.com/wiki/Reference/SystemCommandsto](http://code.kx.com/wiki/Reference/SystemCommandsto) call a system command in a q expression, use ‘system’.-- Kind regards,Roman Mishin
