how to replace javascript '\' with another char
<p>i have a var in javascript that looks like this: </p>

<pre><code>C:\docs\path\file.exe
</code></pre>

<p>how can i replace \ with another char like ? 
so the var becomes  </p>

<pre><code>C:?docs?path?file.exe
</code></pre>

<p><strong>edit</strong><br>
i am trying to find the size of a file in JS. the only way i managed to do it, is to call a [WebMethod] using $ajax. when i try to send the path as it is, i get an escape character error, so i chose to replace '\' by '?' and then the [WebMethod] replaces '?' with '\' check the file size and returns it.</p>
