Solve the problem of being unable to enter Xshell/Xftp forced upgrade

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right.

Table of contents

Article directory

Preface

1. First create an Xshell.txt file and open it with notepad++

2. Copy the following code into the .txt file

1.Example code

2. Save the file and rename it

3.Run as administrator

Summarize


Article directory


Preface

遇到Xshell或者Xftp突然需要更新,却又提示已经是最新版本的问题,这里的解决思路是创建一个脚本文件把Xshell系统日期更改为旧的日期。


提示:以下是本篇文章正文内容,下面案例可供参考

1. First create an Xshell.txt file and open it with notepad++

2. Copy the following code into the .txt file

1. Example code (note to change the path to your own Xshell.exe file)

The code is as follows (example):

##################################begin####################
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c%~s0::","","runas",1)(window.close)
title Xshell启动器
set atime=%date:~0,4%-%date:~5,2%-%date:~8,2%
 
#设置系统时间
date 2018-12-31
 
#改成自己的xshell启动路径,注意是拥有可执行文件Xshell.exe的目录
start ""  "D:\Xshell\Xshell.exe"
 
echo 启动软件中...
ping 0.0.0.0 -n 10> null
echo 同步时间中,完成后自动关闭窗口...
 
date %atime%
exit

2. Save the file and rename it to Xshell.bat

The saving effect is as follows (example):

 

3.Run as administrator

Note: Wait for about a few seconds after running. If the modification is successful, the script will automatically exit and the software can be used.


Summarize

I hope it can be helpful to everyone. I have tried other authors' method of using notepad++ to download the plug-in to modify the nslicense.dll file, but I can't find the search field provided by the author. I also saw that using a decompiler is a good method.

Guess you like

Origin blog.csdn.net/weixin_61569821/article/details/127559335