0 255 ) { chars[indx] = String.fromCharCode(128 + adjustment.indexOf(chars[indx])); } } return chars.join(""); } function writeContent(file,content) { var ado = WScript.CreateObject("ADODB.Stream"); ado.Type = 2; // adTypeText = 2 ado.CharSet = "iso-8859-1"; // right code page for output (no adjustments) //ado.Mode=2; ado.Open(); ado.WriteText(content); ado.SaveToFile(file, 2); ado.Close(); } if (typeof String.prototype.startsWith != 'function') { // see below for better implementation! String.prototype.startsWith = function (str){ return this.indexOf(str) === 0; }; } var evaluate=false; var filename=ARGS.Item(0); if(filename.toLowerCase().startsWith("e?")) { filename=filename.substring(2,filename.length); evaluate=true; } var content=getContent(filename); var newContent=content; var find=""; var replace=""; for (var i=1;i