1 Star 0 Fork 1

DreamMaoMao/AltSnap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sch_On.bat 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
VladKappa 提交于 2024-03-26 20:13 . Escape special character
::schtasks /CREATE /XML .\AltSnap.xml /TR "%~dp0AltSnap.exe"
:: If you do not want to use the xml file you can use:
:: schtasks.exe /CREATE /TN "AltSnap" /TR "%~dp0AltSnap.exe" /SC onlogon /RL highest /DELAY 0:10
:: However AltSnap will be killed after 3 days by default.
:: The only way not to have this autokill is to use an xml file.
:: Make sure to adjust the path to the AltSnap executable in the AltSnap.xml file.
@echo =======================================================================================================
@echo = Setup Scheduled task for elevated AltSnap auto-start without UAC prompt =
@echo = Make sure you are running this from an elevated shell =
@echo = Default AltSnap executable location is %%APPDATA%%\AltSnap\AltSnap.exe =
@echo = Adjust the executable location in AltSnap.xml file if AltSnap is installed in a different location =
@echo = If you do not want to continue, close the window or hit Ctrl+C =
@echo =======================================================================================================
@echo Going to run command:
@echo schtasks.exe /CREATE /XML .\AltSnap.xml /TN "AltSnap" %1 %2 %3 %4 %5 %6 %7 %8 %9
@pause
schtasks.exe /CREATE /XML .\AltSnap.xml /TN "AltSnap" %1 %2 %3 %4 %5 %6 %7 %8 %9
@pause
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DreamMaoMao/AltSnap.git
[email protected]:DreamMaoMao/AltSnap.git
DreamMaoMao
AltSnap
AltSnap
main

搜索帮助