Multimedia tool Unity setting software starts automatically after booting

 This script will automatically set shortcuts on the desktop and self-starting folders, so you don’t have to worry about overwriting and other issues. 

Dll link:

https://download.csdn.net/download/qq_39097425/87785470

using System;
using System.IO;
using UnityEngine;

public class MonkeyAutoStartUp : MonoBehaviour
{
    private static string ShortcutName = "KY.lnk";

    private void Start()
    {
        print("Desktop " + Environment.GetFolderPath(Environment.SpecialFolder.Desktop));
#if !UNITY_EDITOR
            CheckLinkExist();
            SetStartupLink();
#endif
    }

    private void SetStartupLink()
    {
        CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.Startup), ShortcutName, System.Diagnostics.Process.GetCurrentProcess().M

Guess you like

Origin blog.csdn.net/qq_39097425/article/details/128340522