@echo off
setlocal EnableDelayedExpansion
color 3e
title Xshell启动器
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c "^&chr(34)^&"%~0"^&chr(34)^&" ::","%cd%","runas",1)(window.close)&&exit
::改成你的xshell启动路径
set XSHELL="D:\Professional_Software\NetSarang\Xshell 7\Xshell.exe"set cTime=%date:~0,4%-%date:~5,2%-%date:~8,2%
date 2020-12-31
echo---------------------------------------------------------------echo Xshell启动器
echo Author : PJW
echo Time : 2022/04/20
echo Ver : V1.0
echo---------------------------------------------------------------echo 启动软件中,完成后自动关闭窗口...start""%XSHELL%
choice /t 1 /d y /n >nul
date %cTime%
exit