title: Forward slash in a JavaScript variable
body: <p>I have the code below.</p>
  
  <pre><code>{
      var custname= "@1";
      var file = "c:/temp/"+ custname + ".txt";
      var fso  = new ActiveXObject("Scripting.FileSystemObject");
      var fh = fso.CreateTextFile(file, true, false);
      fh.Write(text);
      fh.Close();
  }
  </code></pre>
  
  <p>The @1 is coming from a database and it's a customer's name. The above code works until I came across a customer name with a forward slash in it, e.g.  "Company A/S".</p>
  
  <p>How do I make this work for customers with the forward slash?</p>