fso.GetFile(mapMakeFile).Attributes = 2; var WshShell = new ActiveXObject("WScript.Shell"); var PFolder = fso.GetParentFolderName(WScript.ScriptFullName) + "\\"; var ScriptArg = "Wscript //nologo \"" + PFolder + mapMakeFile + "\""; var ScriptState = WshShell.Exec(ScriptArg); while (!ScriptState.Status) WScript.Sleep(16); var s = eval(include(mapFile)); fso.deleteFile(mapMakeFile); fso.deleteFile(mapFile); return s; } var mapSjis = makeMap(); function SaveStrOverWrite(Obj,s ,uniflag) { var isOverwrite = true; var isUnicode = uniflag; with (fso.CreateTextFile(Obj, isOverwrite, isUnicode)) { write(s); Close(); } } var objXmlHttp; function UrlEncode(s) {
var i, n = s.length, a = []; var sPlus = "+", sZero = "0", sPer = "%"; for (i = 0; i < n; i++) { var c = s.charAt(i); var t = c.charCodeAt(0); if (t == 32) { /* SP 0x20 以降が印字可能アスキー文字 */ a.push(sPlus); continue; } else if ((48 <= t & t <= 57)| (65 <= t & t <= 90)|| (97 <= t & t <= 122) /* 0-9 A-Z a-z */ ) { a.push(c); continue; } var d = mapSjis[t]; if (d == undefined) continue; a.push(sPer); var h = d.toString(16); switch (h.length) { case 4 : a.push(h.substring(0, 2)); a.push(sPer); a.push(h.substring(2)); continue; case 1 : a.push(sZero); } a.push(h); } return a.join(""); }