1.效果
首先打开dat 文件,同意赋予管理员
输入序号1
成功启动
2.Bat代码
bash
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
@echo off
color 3e
goto menu
:menu
ECHO. 1(jupyter notebook) 2(jupyter lab)
ECHO.
echo.input num:
set /p ID=
if "%id%"=="1" goto cmd1
if "%id%"=="2" goto cmd2
:cmd1
jupyter notebook
exit
:cmd2
jupyter lab
exit
保存,把文件命名为:jupyter.bat 就可以了