资源简介
本压缩包包括SecureCRT Ver 8.1.4软件一体包(包括工具本身及Exe的绿化、汉化和Crack)。
代码片段和文件信息
# $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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 57 2017-12-12 22:04 0-版本说明.txt
目录 0 2017-12-12 22:09 SecureCRT_v8.1.4\
文件 1614544 2017-08-03 09:20 SecureCRT_v8.1.4\Activator.exe
文件 19136 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-console-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-datetime-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-debug-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-errorhandling-l1-1-0.dll
文件 22208 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-file-l1-1-0.dll
文件 18624 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-core-file-l1-2-0.dll
文件 18624 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-core-file-l2-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-handle-l1-1-0.dll
文件 19136 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-heap-l1-1-0.dll
文件 19136 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-interlocked-l1-1-0.dll
文件 19136 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-libraryloader-l1-1-0.dll
文件 21184 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-core-localization-l1-2-0.dll
文件 19136 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-memory-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-namedpipe-l1-1-0.dll
文件 19648 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-processenvironment-l1-1-0.dll
文件 20672 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-processthreads-l1-1-0.dll
文件 19136 2015-12-07 13:47 SecureCRT_v8.1.4\api-ms-win-core-processthreads-l1-1-1.dll
文件 18112 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-profile-l1-1-0.dll
文件 18112 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-rtlsupport-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-string-l1-1-0.dll
文件 20672 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-synch-l1-1-0.dll
文件 19136 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-core-synch-l1-2-0.dll
文件 19648 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-sysinfo-l1-1-0.dll
文件 18624 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-core-timezone-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT_v8.1.4\api-ms-win-core-util-l1-1-0.dll
文件 19648 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-crt-conio-l1-1-0.dll
文件 22720 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-crt-convert-l1-1-0.dll
文件 19136 2015-12-04 15:47 SecureCRT_v8.1.4\api-ms-win-crt-environment-l1-1-0.dll
............此处省略113个文件信息
相关资源
- scrt-sfx-8.1.1-1319.ubuntu16-64.x86_64.deb
- SecureCRT 8.0.4.rpm(目前最新版)
- Windows强大的虚拟桌面工具-Dexpot绿色完
- (齿轮生成器)GearTrax_2015_23_0_151绿色
- Lingo11完美绿色版 (无变量限制 可求
- LINGO11绿色完美破解版变量没有限制,
- tesseract-ocr-setup-3.02.02.exe 官方绿色版
- jdk1.8.0_45_x86绿色版32位(解压版)
- 64位绿色版.rar
- securecrt8.5
- Git for Windows 2017 绿色最新版
- SecureCRT 8.1带注册机,亲测可用
- Powerbuilder6.5绿色版
- jdk1.6.0_30绿色版下32位part2
- SecureCRT-8.0.4破解版
- genymotion-arm-translation-Marshmallow 6.0 官方
- vs2015番茄助手最新版 VA_X_Setup 2062 绿色
- 非等宽点阵字库生成器(fontmaker)v
- ultraEdit可用无广告绿色破解版--亲测可
- 绿色版免安装CRT7
- Nero7.7.5.1简体中文绿色精简免注册免安
-
xm
lSpy2013 绿色版 - 14359376Xshell_Plus_v6_Final_永久授权补全简
- 免费破解版的Securecrt 64 位
- SecureCRT中文破解版
- SecureCRT与SecureFX中文绿色破解版,亲测
- Securecrt64.7z
- Arlequin 3.5.1.3 绿色版_人口遗传学分析
- Cheat Engine 6.8.1汉化绿色版
- 位图转矢量软件Vector Magic 1.15汉化绿色
评论
共有 条评论