environment

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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]

func New

func New() Interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL