Skip to content

Set icon to the corner of the current console (Command Prompt)

Notifications You must be signed in to change notification settings

nyaosorg/go-windows-consoleicon

Repository files navigation

go-windows-consoleicon

Set icon to the corner of the current console (Command Prompt)

// +build example

package main

import (
    "os"

    "github.com/nyaosorg/go-windows-consoleicon"
)

const icon_restore = true

func main() {
    closer, err := consoleicon.SetFrom(`C:\Windows\System32\notepad.exe`)
    if err != nil {
        return
    }
    defer closer(icon_restore)

    var dummy [1]byte
    os.Stdin.Read(dummy[:])
}

About

Set icon to the corner of the current console (Command Prompt)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages