powcshell.shellexec module#

パスまたはアイテムIDリストのシェル操作。

主なクラスは ShellExecute です。

class powcshell.shellexec.ShellExecute#

ベースクラス: object

パスまたはアイテムIDリストのシェル操作機能を提供します。

static execute_class(classname: str, verb: str, invokes: bool = True, params: str | None = None, dir: str | None = None, showcmd: ShowCommand | int = ShowCommand.SHOWNORMAL, hotkey: int | None = None, monitor_handle: int | None = None, options: ShellExecuteOption = ShellExecuteOption.DEFAULT) int#
static execute_path(path: str | PathLike, verb: str, invokes: bool = True, params: str | None = None, dir: str | None = None, showcmd: ShowCommand | int = ShowCommand.SHOWNORMAL, hotkey: int | None = None, monitor_handle: int | None = None, options: ShellExecuteOption = ShellExecuteOption.DEFAULT) int#
static execute_pidl(pidl: int, verb: str, invokes: bool = True, params: str | None = None, dir: str | None = None, showcmd: ShowCommand | int = ShowCommand.SHOWNORMAL, hotkey: int | None = None, monitor_handle: int | None = None, options: ShellExecuteOption = ShellExecuteOption.DEFAULT) int#
static execute_regkey(regkey_handle: int, verb: str, invokes: bool = True, params: str | None = None, dir: str | None = None, showcmd: ShowCommand | int = ShowCommand.SHOWNORMAL, hotkey: int | None = None, monitor_handle: int | None = None, options: ShellExecuteOption = ShellExecuteOption.DEFAULT) int#
class powcshell.shellexec.ShellExecuteOption(*values)#

ベースクラス: IntEnum

ASYNC_OK = 1048576#
CONNECT_NETWORKDRIVE = 128#
DEFAULT = 0#
EXPAND_ENVVARS = 512#
LOG_USAGE = 67108864#
NO_ASYNC = 256#
NO_CLOSE_PROCESS = 64#
NO_CONSOLE = 32768#
NO_UI = 1024#
NO_ZONECHECKS = 8388608#
WAIT_FOR_INPUTIDLE = 33554432#
class powcshell.shellexec.ShowCommand(*values)#

ベースクラス: IntEnum

FORCEMINIMIZE = 11#
HIDE = 0#
MAXIMIZE = 3#
MINIMIZE = 6#
NORMAL = 1#
RESTORE = 9#
SHOW = 5#
SHOWDEFAULT = 10#
SHOWMAXIMIZED = 3#
SHOWMINIMIZED = 2#
SHOWMINNOACTIVE = 7#
SHOWNA = 8#
SHOWNOACTIVATE = 4#
SHOWNORMAL = 1#