资源简介
这个secureCRT是免安装的,免安装的,免安装的(重要的话说三次!)而且已经破解和汉化,只要解压出来,直接就可以使用了。
甚至,我已连它“会话选项”最理想化的的配置都弄好了!
代码片段和文件信息
# $language = “python“
# $interface = “1.0“
# AddCommentToLogFile.py
#
# Description:
# This example script allows you to add a custom line of text to your
# SecureCRT log file. The user will be prompted for the text to add
# to the log file; logging will be stopped; the text provided by the
# user will be appended to the log file; then SecureCRT logging will
# be restarted.
#
# This method only works with connections associated with a Session
# configuration in which a log file is specified.
#
# Demonstrates:
# - How to prompt for user input using the SecureCRT InputBox() function.
# - How to access Session.LogFileName to determine the log file name
# stored for the current session.
# - How to use the Session.Logging property to determine if logging
# is currently active.
# - How to use the Python replace() method to substitute substrings
# within an existing string.
# - How to use the Python file object to open an existing text file
# and append data.
#
import datetime
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def Main():
# Make this script tab safe
tab = crt.GetscriptTab()
if tab.Session.LogFileName == ““ :
crt.Dialog.MessageBox(“Error.\n\n\
This script requires a session configuration in which a \
log file is defined.\n\n\
Specify a Log file name in Session Options ““Terminal / \
Log File““ and run this script again.“)
return
# 1. Stop logging to free up the log file for writing by our script.
tab.Session.Log(False)
# 2. Prompt the user for the text to add to the log file.
now = str(datetime.datetime.now())
textToAdd = crt.Dialog.Prompt(
“Add comment to log file (use \\r\\n to separate multiple lines):\n\n\
Comment will be prefaced with current timestamp:\n“ + now + “\n“
“Add Comment To SecureCRT Log File\n“ + now + “: “)
# Prompt returns ““ if the user cancels
if textToAdd == ““:
return
# 3. Write data to the file. If you want to include a newline you must
# concatenate a \n character to the end of the line. Note also that you can
# wrap the comment with certain markers and not require the user to enter
# these markers when prompted. Although the prompt function only allows
# one line per entry you can set up a tag that can be used to represent
# a new line such as “\r\n“ and then replace this tag with a \n as we
# have done in this example:
textToAdd = “\n/********************************************/ \n\
* “ + now + “: \n* “ + textToAdd.replace(“\r\n“ “\n* “) + “\n\
/********************************************/ \n“
WriteToFile(tab.Session.LogFileName textToAdd)
# 4. Start up logging again making sure we append rather than overwrite.
tab.Session.Log(True True)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def WriteToFile(filename data):
# filename: Full path to file
# data: data to be written to the
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-08-11 11:16 SecureCRT_7.1.1\
目录 0 2017-08-11 11:16 SecureCRT_7.1.1\App\
目录 0 2017-08-11 11:16 SecureCRT_7.1.1\App\AppInfo\
文件 8734 2011-08-21 17:12 SecureCRT_7.1.1\App\AppInfo\appicon.ico
文件 690 2011-12-24 01:28 SecureCRT_7.1.1\App\AppInfo\appicon_16.png
文件 1698 2011-12-24 01:28 SecureCRT_7.1.1\App\AppInfo\appicon_32.png
文件 548 2013-06-05 21:52 SecureCRT_7.1.1\App\AppInfo\appinfo.ini
目录 0 2017-08-11 11:16 SecureCRT_7.1.1\App\SecureCRT\
文件 570368 2012-07-29 16:06 SecureCRT_7.1.1\App\SecureCRT\Activator.exe
文件 1132032 2012-07-29 16:58 SecureCRT_7.1.1\App\SecureCRT\ClientConfigUI70U.dll
文件 1214336 2013-05-22 17:07 SecureCRT_7.1.1\App\SecureCRT\ClientConfigUI71U.dll
文件 326144 2012-07-29 16:58 SecureCRT_7.1.1\App\SecureCRT\CommonUI70U.dll
文件 369520 2013-05-22 17:07 SecureCRT_7.1.1\App\SecureCRT\CommonUI71U.dll
文件 694784 2012-07-29 16:58 SecureCRT_7.1.1\App\SecureCRT\ConnectDialog70U.dll
文件 735104 2013-05-22 17:07 SecureCRT_7.1.1\App\SecureCRT\ConnectDialog71U.dll
目录 0 2017-08-11 11:16 SecureCRT_7.1.1\App\SecureCRT\Keymaps\
文件 5239 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\CRiSP.key
文件 9953 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\VShell.key
文件 2173 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\doorway.key
文件 1843 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\vt100.key
文件 2070 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\vt220-linux.key
文件 2537 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\vt220.key
文件 3735 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\vt400.key
文件 3957 2004-03-17 14:47 SecureCRT_7.1.1\App\SecureCRT\Keymaps\wyse50.key
文件 763840 2012-07-29 16:16 SecureCRT_7.1.1\App\SecureCRT\LicenseHelper.exe
文件 732160 2012-07-29 16:06 SecureCRT_7.1.1\App\SecureCRT\LicenseUI70U.dll
文件 760184 2013-05-22 17:07 SecureCRT_7.1.1\App\SecureCRT\LicenseUI71U.dll
目录 0 2017-08-11 11:16 SecureCRT_7.1.1\App\SecureCRT\Menus\
文件 7249 2011-09-12 10:35 SecureCRT_7.1.1\App\SecureCRT\Menus\Japanese.mnu
文件 6915 2011-09-12 10:35 SecureCRT_7.1.1\App\SecureCRT\Menus\allsystem.mnu
文件 8845 2012-09-12 13:45 SecureCRT_7.1.1\App\SecureCRT\Menus\default.mnu
............此处省略82个文件信息
相关资源
- SecureCRT 8.0.4 带注册机 win10可用
- SecureCRT -7.3.2 linux 版 中文版 含破解方
- 免安装永久免费版SecureCRT
- SecureCRT8.0中文版+注册机+汉化补丁
- SecureCRT解压版
- [最新]SecureCRT+SecureFX.Bundle.v8.5-x64附注
- SecureCRT+FX 8.5.3x64-Build1867汉化补丁完美
- SecureCRT 7.3.4破解版(含注册机)
- 全新SecureCRT8.064位+注册机,经典
- SecureCRT、SecureFX 7.3.6 for MAC
- SecureCRT Ver 8.1.4 绿色汉化版
- scrt-sfx-8.1.1-1319.ubuntu16-64.x86_64.deb
- SecureCRT 8.0.4.rpm(目前最新版)
- securecrt8.5
- SecureCRT 8.1带注册机,亲测可用
- SecureCRT-8.0.4破解版
- 绿色版免安装CRT7
- 免费破解版的Securecrt 64 位
- SecureCRT中文破解版
- SecureCRT与SecureFX中文绿色破解版,亲测
- Securecrt64.7z
- mac securecrt 8.0.4 破解版
- secure8.5_for_linux.tar.gz
- SecureCrt for mac93347
- SecureCRT中文免安装版.zip
- VanDyke.SecureCRT和SecureFX8.0.4.7z
- SecureCRT 6.5.3.490
- SecureCRT v8.5.4.1942汉化版 x64.rar
- secureCRT for mac
- SecureCRT安装注册破解
评论
共有 条评论