(2010-11-06 (土) 08:49:00)
openpromptr { title: 編集中のファイルのフォルダをコマンドプロンプトで開く HTEXT text = getfocus(); if(strcmp(text.clm_fname, "")==0) return; HTEXT path = dup(text.clm_fname); char *p = pathgetfile(path); if(p) *p = '\0'; #ifdef DEBUG iprintf("%s\n", path); #endif WinExec(getdata(textprintf("cmd.exe /k title WZ PROMPT & cd /d \"%s\"", path)), SW_SHOW); }
(2010-11-06 (土) 08:48:12)
openexplorer { title: 編集中のファイルのフォルダを開く(ツリービュー付き) HTEXT text = getfocus(); if(strcmp(text.clm_fname, "")==0) return; HTEXT path = dup(text.clm_fname); char *p = pathgetfile(path); if(p) *p = '\0'; #ifdef DEBUG iprintf("%s\n", path); #endif WinExec(getdata(textprintf("explorer /n,/e,\"%s\"", path)), SW_SHOW); }
(2010-11-06 (土) 08:46:08)
openfolder { title: 編集中のファイルのフォルダを開く HTEXT text = getfocus(); if(strcmp(text.clm_fname, "")==0) return; HTEXT path = dup(text.clm_fname); char *p = pathgetfile(path); if(p) *p = '\0'; #ifdef DEBUG iprintf("%s\n", path); #endif shellopen(path); }