<p>This may be a painfully simply question for which I will be mocked but I am having difficulty in using filepaths in master pages. I believe this is because if a page in a sub-directory to using the master page then the filepath is incorrect.</p>
<p>To fix this I need to get the filepath from the root but I can't seem to get it working.</p>
<p>I tried:</p>
<pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;~/jQueryScripts/jquery.js&quot;&gt;&lt;/script&gt; 
</code></pre>
<p>and</p>
<pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;../jQueryScripts/jquery.js&quot;&gt;&lt;/script&gt; 
</code></pre>

<p>No luck on either!</p>
<p>Any ideas on how I can tell it to get the filepath from the root?</p>

I'm just assuming by filepath, you actually mean url (or uri, I forget which one is partial).
Without the ~, the first example should work.
```
<script type="text/javascript" src="/jQueryScripts/jquery.js"></script>
```
would cause the browser to request
http://www.example.com/jQueryScripts/jquery.js
(where www.example.com is your domain).