From 81285a0befefe3751500d6c7c84e97556dd6500f Mon Sep 17 00:00:00 2001 From: yang <1633346816@qq.com> Date: Sun, 16 Oct 2022 21:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0config=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +-- config/cancel_auto_start.bat | 3 +++ config/copy_auto_start_file.bat | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 config/cancel_auto_start.bat create mode 100644 config/copy_auto_start_file.bat diff --git a/.gitignore b/.gitignore index 6702f32..ce181e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ .idea .gradle -build -config \ No newline at end of file +build \ No newline at end of file diff --git a/config/cancel_auto_start.bat b/config/cancel_auto_start.bat new file mode 100644 index 0000000..42b8ac8 --- /dev/null +++ b/config/cancel_auto_start.bat @@ -0,0 +1,3 @@ +C: +cd C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\ +del RoomIt.bat diff --git a/config/copy_auto_start_file.bat b/config/copy_auto_start_file.bat new file mode 100644 index 0000000..faeef79 --- /dev/null +++ b/config/copy_auto_start_file.bat @@ -0,0 +1,5 @@ +@echo off +%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit +cd /d "%~dp0" + +xcopy ".\RoomIt.bat" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\" /y \ No newline at end of file