RoomIt/config/copy_auto_start_file.bat

5 lines
235 B
Batchfile
Raw Permalink Normal View History

2022-10-16 21:57:37 +08:00
@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