i have a var in javascript that looks like this:
C:\docs\path\file.exe
how can i replace \ with another char like ? so the var becomes
C:?docs?path?file.exe
edit
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.