-
大小: 27.99MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-07-16
- 语言: 其他
- 标签: SecureCRT8.0 汉化版
资源简介
SecureCRT8.0 汉化版 注册机 汉化补丁
代码片段和文件信息
# $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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2039008 2016-06-07 10:44 SecureCRT8.0\SecureCRT\Activator.exe
文件 19136 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-console-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-datetime-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-debug-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-errorhandling-l1-1-0.dll
文件 22208 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-file-l1-1-0.dll
文件 18624 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-core-file-l1-2-0.dll
文件 18624 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-core-file-l2-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-handle-l1-1-0.dll
文件 19136 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-heap-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-interlocked-l1-1-0.dll
文件 19136 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-libraryloader-l1-1-0.dll
文件 21184 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-core-localization-l1-2-0.dll
文件 19136 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-memory-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-namedpipe-l1-1-0.dll
文件 19648 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-processenvironment-l1-1-0.dll
文件 20672 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-processthreads-l1-1-0.dll
文件 19136 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-core-processthreads-l1-1-1.dll
文件 18112 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-profile-l1-1-0.dll
文件 19136 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-rtlsupport-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-string-l1-1-0.dll
文件 20672 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-synch-l1-1-0.dll
文件 19136 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-core-synch-l1-2-0.dll
文件 19648 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-sysinfo-l1-1-0.dll
文件 18624 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-core-timezone-l1-1-0.dll
文件 18624 2016-02-05 12:16 SecureCRT8.0\SecureCRT\api-ms-win-core-util-l1-1-0.dll
文件 19648 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-crt-conio-l1-1-0.dll
文件 22720 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-crt-convert-l1-1-0.dll
文件 19136 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-crt-environment-l1-1-0.dll
文件 20672 2015-12-04 15:47 SecureCRT8.0\SecureCRT\api-ms-win-crt-filesystem-l1-1-0.dll
............此处省略113个文件信息
相关资源
- SecureCRT8.0 RPM 版
- mikumikudance十周年汉化版本
- 膜系设计软件TFC中文汉化版
- 模糊照片变清晰、照片修复工具_Sma
- 2013国外远控DarkComet最新免杀汉化版
- WinDbg原版+汉化版+中文帮助文档
- Terminal 1.9b汉化版(串口调试工具)
- KEIL+C51+V8.06+完全汉化版
- Unfold3D Networking v9.0.2 Build 2457汉化版
- 翼型设计软件-ProfiliV2汉化版
- PowerGREPD5.0.2.0汉化版 最新 稳定
- xara 3d6 完整汉化版
- FastReport4.2 中文汉化版
- ePSXe Plus v1.9.0模拟器 全最新插件汉化
- 打包工具SetupFactory7.0.1破解汉化版含教
- sublime text3 带插件50+插件 最强汉化版
- FastReport 4.13 完美汉化版本
- 臭氧4汉化破解版音频效果器
-
Freest
yler V3.5.9汉化版及使用说明 - FontCreator11汉化版
-
me
taseq314汉化版内含PMD插件 - OllyDBG Jiack汉化版
- Apache JMeter V4.0 免费汉化版.zip
- SecureCRT8.0中文版+注册机+汉化补丁
- DxWnd窗口化工具汉化版合集.part4
- 全新SecureCRT8.064位+注册机,经典
- SecureCRT Ver 8.1.4 绿色汉化版
- 地质dips汉化版
- XFLR5汉化版本
- (齿轮生成器)GearTrax_2015_23_0_151绿色
评论
共有 条评论