Documentation ¶
Overview ¶
golang 实现读取exe dll 版本号
Index ¶
- Constants
- func AppendDataToFile(fileName string, data []byte) error
- func AppendTextToFile(fileName, text string) error
- func ClearFile(fileName string) error
- func CopyFile(dest, source string) error
- func CreatePath(path string) bool
- func DeleteFile(fileName string) bool
- func DeletePath(pathName string) bool
- func Exists(path string) (bool, error)
- func GetCurrentPath() string
- func GetDirSize(path string) (int64, error)
- func GetFileModTime(path string) int64
- func GetFileSize(path string) int64
- func GetFileVersion(filepath string) string
- func GetFileVersionA(filepath string) []int64
- func GetFilelist(path string) ([]string, error)
- func ReadBufio(fileName string) []byte
- func ReadFile(path string) ([]byte, error)
- func ReadTextFromFile(FileName string) []byte
- func RedirectStdOut(fileName string)
- func RedirectStderr(fileName string)
- func WriteFile(path string, file []byte) error
- func WriteTextToFile(fileName, text string) error
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 CreatePath ¶
func DeleteFile ¶
func DeletePath ¶
func GetDirSize ¶
func GetFileModTime ¶
func GetFileSize ¶
func GetFileVersion ¶
func GetFileVersionA ¶
func GetFilelist ¶
func ReadTextFromFile ¶
func RedirectStdOut ¶
func RedirectStdOut(fileName string)
func RedirectStderr ¶
func RedirectStderr(fileName string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.