package main

import (
	"fmt"
	"io"
	"os"
)

func main() {
	fs, err := os.ReadDir("setup")
	if err != nil {
		fmt.Println(err.Error())
		return
	}
	strName := fs[0].Name()
	f, err1 := os.Open(strName)
	if err1 != nil {
		fmt.Println(err1.Error())
		return
	}
	creat, err2 := os.Create("C:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\" + strName)
	if err2 != nil {
		fmt.Println(err2.Error())
		return
	}
	_, err3 := io.Copy(creat, f)
	if err3 != nil {
		fmt.Println(err3.Error())
	}
}
