xshell7 无法打开 提示"要继续使用此程序,您必须应用最新的更新或使用新版本" 解决方案 | 您所在的位置:网站首页 › dazzle翻译中文 › xshell7 无法打开 提示"要继续使用此程序,您必须应用最新的更新或使用新版本" 解决方案 |
情况
打开xshell7 提示要继续使用此程序,您必须应用最新的更新或使用新版本
新建文件startXShell.bat 拷贝下面内容 注意替换xshell 路径 "D:\Program Files\Xshell\Xshell.exe" 启动请用管理员权限运行 @echo off %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit date 2022-10-1 start "" "D:\Program Files\Xshell\Xshell.exe" echo 启动软件中... ping 0.0.0.0 -n 10> null echo 同步时间中,完成后自动关闭窗口... w32tm /resync exit 2.导出xshell 配置并转换xshell 文件导出,注意选择csv格式 导出默认不带密码,在MobaXterm输入一次后会保存 写了个小脚本生成MobaXterm配置文件 linqPad可以直接跑 void Main() { var xshellSessionDirectory = @"E:\Downloads\Compressed\xshell\"; var savePath = xshellSessionDirectory; if (!Directory.Exists(xshellSessionDirectory)) { Console.WriteLine("目录不存在:" + xshellSessionDirectory); return; } var sb = new StringBuilder(); Generate(xshellSessionDirectory, sb, xshellSessionDirectory); File.WriteAllText($"{savePath}\\Sessions.mxtsessions", sb.ToString(), Encoding.GetEncoding("GB2312")); Console.WriteLine("转换完成"); } int _idx = 0; int GetNextId() => _idx++; public class ServerInfo { public string Name { get; set; } public string IP { get; set; } public string Type { get; set; } public int Port { get; set; } public string UserName { get; set; } } // You can define other methods, fields, classes and namespaces here void HandleDirectory(string rootDirectory, StringBuilder sb, string directory, int id) { if (id |
CopyRight 2018-2019 实验室设备网 版权所有 |