- 935 名前:名無しさん@お腹いっぱい。 mailto:sage [2005/11/06(日) 19:50:56 ID:vAYTwHdp0]
- 叩き台ですが、
var dir =App.Buffer.FileName.slice(0, -App.Buffer.BufferName.length); var moeditor_path = App.Path + 'moe.exe'; var i = 'grep結果'; var select = App.Caret.Selection; var shell = new ActiveXObject("WScript.Shell"); var tmp = select.Text; if( select.Mode ){ shell.currentDirectory = dir; shell.Run('CMD /c grep -in ' + tmp + ' ' + '* >' + dir + i , 0, true); App.Window.Views.SplitNS(); shell.Run(moeditor_path + ' ' + dir + i , 1 , false); } で一応動いていたんですけど、どのように使うのですか?
|

|