ToolFiles

package
v0.0.0-...-332b391 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

golang 实现读取exe dll 版本号

Index

Constants

View Source
const (
	MZ       = "MZ"
	PE       = "PE"
	RSRC     = ".rsrc"
	TYPET    = 16
	PEOFFSET = 64
	MACHINE  = 332
	DEFAULT  = `C:\Windows\System32\cmd.exe`
)

Variables

This section is empty.

Functions

func AppendDataToFile

func AppendDataToFile(fileName string, data []byte) error

/追加写

func AppendTextToFile

func AppendTextToFile(fileName, text string) error

/追加写

func ClearFile

func ClearFile(fileName string) error

func CopyFile

func CopyFile(dest, source string) error

func CreatePath

func CreatePath(path string) bool

func DeleteFile

func DeleteFile(fileName string) bool

func DeletePath

func DeletePath(pathName string) bool

func Exists

func Exists(path string) (bool, error)

func GetCurrentPath

func GetCurrentPath() string

GetCurrentPath 获取当前路径

func GetDirSize

func GetDirSize(path string) (int64, error)

func GetFileModTime

func GetFileModTime(path string) int64

func GetFileSize

func GetFileSize(path string) int64

func GetFileVersion

func GetFileVersion(filepath string) string

func GetFileVersionA

func GetFileVersionA(filepath string) []int64

func GetFilelist

func GetFilelist(path string) ([]string, error)

func ReadBufio

func ReadBufio(fileName string) []byte

func ReadFile

func ReadFile(path string) ([]byte, error)

func ReadTextFromFile

func ReadTextFromFile(FileName string) []byte

func RedirectStdOut

func RedirectStdOut(fileName string)

func RedirectStderr

func RedirectStderr(fileName string)

func WriteFile

func WriteFile(path string, file []byte) error

func WriteTextToFile

func WriteTextToFile(fileName, text string) error

/覆盖写

Types

This section is empty.

Jump to

Keyboard shortcuts

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