// MSYSのパスをWindows形式に簡易変換 var text=GetSelectedString(0); text=text.replace(/^\/([a-zA-Z])\//,"\x01$1:\\"); text=text.replace(/\//g,"\\"); var pos while((pos=text.indexOf("\x01"))>=0) { text=text.substr(0,pos)+text.substr(pos+1,1).toUpperCase()+text.substr(pos+2); } InsText(text);