WZ6/マクロ集/外部ツール
- ファイルのあるフォルダを開く
- ファイルのあるフォルダをExplorerで開く
- ファイルのあるフォルダをコマンドプロンプトで開く
static int exectool(char *command)
{
// commandには必ず%sを含むこと!
HTEXT text = getfocus();
if(*text.clm_fname)
{
HTEXT path = strdup(text.clm_fname);
char *p = pathgetfile(path);
if(p)
{
*p = 0;
HTEXT s = new();
sprintf(s, command, path);
return WinExec(s, SW_SHOW);
}
}
else
statprintf("ファイル名が設定されていません。\n");
return 99999;
}
openfolder
{
title: ファイルのあるフォルダを開く
exectool("explorer.exe \"%s\"");
}
openexplorer
{
title: ファイルのあるフォルダをExplorerで開く
exectool("explorer.exe /n,/e,\"%s\"");
}
cmd
{
title: ファイルのあるフォルダをコマンドプロンプトで開く
exectool("cmd.exe /k title WZ Prompt && cd /d \"%s\"");
}
MENU
最新の20件
2020-11-14
2017-12-09
2017-12-02
2017-04-05
2014-05-23
2012-04-14
2011-10-17
2011-12-07
2011-12-02
2011-11-03
2011-10-18
2016-10-18
2016-06-17
2016-05-12
2014-11-25
2014-09-15
2014-05-21
2013-05-04
2012-04-14
人気の10件
- counter: 2226
- today: 1
- yesterday: 0
- online: 1