peekenv

command module
Version: v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

README

peekenv Build status

Windows utility written in Go to peek environment variables from the registry.

Install

There are no dependencies.

go get github.com/tischda/peekenv
Usage
Usage: peekenv [-h] [-m] [-f outfile] [variables...]

OPTIONS:
  -f string
        file to dump the variables from the Windows environment (default "REQUIRED")
  -h
  -help
        displays this help message
  -i
  -info
        print info header
  -m
  -machine
        specifies that the variables should be read system wide (HKEY_LOCAL_MACHINE)
  -v
  -version
        print version and exit

Example:

# peekenv.exe -m pathext    
[PATHEXT]                   
.COM                        
.EXE                        
.BAT                        
.CMD                        
.VBS                        
.VBE                        
.JS                         
.JSE                        
.WSF                        
.WSH                        
.MSC                        

Note that the value .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC is converted to multiples lines. This is the input format used by pokenv.

Other readers

Built-in, see: reg query /?

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL