Skip to main content

Module utils

Module utils 

Source
Expand description

通用工具:IPv4 校验、管理员上下文执行命令、控制台 GBK 输出、路径与时间格式等。

使用 std::os::windows::process::CommandExt,面向 Windows 主机。

Modules§

file
hex
path
string
unit_conversion

Statics§

HIDE_WINDOW_FLAG

Traits§

Println
Str

Functions§

check_ipv4_by_string
now_ymd
获取当前本地时间并格式化 2025-9-16
now_ymd_hms
获取当前本地时间并格式化 当前时间为: 2023年10月05日 14:30:45
run_commands
运行命令 管理员权限 /C 不保留窗口 /K 保留窗口
run_multiple_commands
运行多条命令