win_tool

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDesktopPath

func GetDesktopPath() (string, error)

获取系统默认桌面路径

func GetDocumentsFolder

func GetDocumentsFolder() (string, error)

获取系统默认文档路径(D:\xxx\computer\Documents)

func GetHardVolumeLetters

func GetHardVolumeLetters() ([]string, error)

获取系统硬盘的盘符

func GetLocalAppDataFolder

func GetLocalAppDataFolder() (string, error)

C:\Users\xxx\AppData\Local

func GetRemoveableVolumeLetters

func GetRemoveableVolumeLetters() ([]string, error)

获取插入的U盘盘符

func GetRoamingAppDataFolder

func GetRoamingAppDataFolder() (string, error)

C:\Users\xxx\AppData\Local

func GetSystemDiskLetters

func GetSystemDiskLetters() []string

获取系统中所有盘符

func GetSystemDiskLetters2

func GetSystemDiskLetters2() ([]string, error)

获取系统中所有盘符

PS C:\Users> fsutil fsinfo drives

驱动器: C:\ D:\ E:\ F:\

func SelectFolderOnWindows

func SelectFolderOnWindows() (string, error)

选择文件夹(仅限windows)

func SelectMultiFilesOnWindows

func SelectMultiFilesOnWindows() ([]string, error)

返回选择的文件路径(绝对路径)

func WatchKeyboardInput

func WatchKeyboardInput(callback func(string), codeCallback func(byte)) error

监控键盘输入

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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