From 4259b509e7e7270ad16a970c52ad84765d969c96 Mon Sep 17 00:00:00 2001 From: iotcat Date: Tue, 28 Jan 2020 21:48:00 +0000 Subject: [PATCH] Committed by cron-git from Yimian-PC --- script/startup.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/startup.bat b/script/startup.bat index e02be03..7a1714a 100644 --- a/script/startup.bat +++ b/script/startup.bat @@ -1,3 +1,6 @@ @echo -pm2 start ./update.js --name fdc -cp /Y fdc_startup.bat C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp \ No newline at end of file +%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit +cd /d "%~dp0" +pm2 start update.js --name fdc +copy /Y fdc_startup.bat "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" +pause \ No newline at end of file