Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EnvPath = `SYSTEM\CurrentControlSet\Control\Session Manager\Environment`
)
ComSpec=%SystemRoot%\system32\cmd.exe
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { //canvasobjectapi.Interface WalkDirs(roots ...string) (ok bool) //遍历需要加入到path的文件夹集生成目录切片,map+goruntine Orig() (ok bool) //读取系统Environment并用map去重+delete bad path Update() (ok bool) //sort by strings }
功能就是刷新windows所有版本的系统path环境变量 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
Click to show internal directories.
Click to hide internal directories.