资源简介
整合了CRT和SecureFX,绿色版,直接解压即可用,不用安装不用破解
代码片段和文件信息
# $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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 198 2012-06-04 23:39 CRT7\SecureCRSecureFXPortable\!)作者博客.url
文件 711 2013-03-29 20:46 CRT7\SecureCRSecureFXPortable\!)使用必读.txt
文件 235 2012-06-05 23:46 CRT7\SecureCRSecureFXPortable\!)综合网购首选.url
文件 8734 2011-08-21 17:12 CRT7\SecureCRSecureFXPortable\App\AppInfo\appicon.ico
文件 690 2011-12-24 01:28 CRT7\SecureCRSecureFXPortable\App\AppInfo\appicon_16.png
文件 1698 2011-12-24 01:28 CRT7\SecureCRSecureFXPortable\App\AppInfo\appicon_32.png
文件 585 2013-03-29 20:46 CRT7\SecureCRSecureFXPortable\App\AppInfo\appinfo.ini
文件 576880 2013-01-10 09:06 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Activator.exe
文件 1708032 2008-12-16 11:29 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\ccme_ba
文件 382 2008-12-16 11:29 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\ccme_ba
文件 1152896 2013-01-10 09:06 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\ClientConfigUI70U.dll
文件 335216 2013-01-10 09:06 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\CommonUI70U.dll
文件 705920 2013-01-10 09:06 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\ConnectDialog70U.dll
文件 1744896 2008-12-16 11:29 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\cryptocme2.dll
文件 382 2008-12-16 11:29 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\cryptocme2.dll.manifest
文件 1607 2008-12-16 11:29 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\cryptocme2.sig
文件 260960 2013-01-10 09:06 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\FTP.dll
文件 268136 2013-01-10 09:06 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\FTPSSL.dll
I.A.... 5239 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\CRiSP.key
I.A.... 2173 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\doorway.key
I.A.... 9953 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\VShell.key
I.A.... 1843 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\vt100.key
I.A.... 2070 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\vt220-linux.key
I.A.... 2537 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\vt220.key
I.A.... 3735 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\vt400.key
I.A.... 3957 2004-03-17 13:47 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Keymaps\wyse50.key
文件 771448 2013-03-29 20:44 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\LicenseHelper.exe
文件 750968 2013-01-10 09:06 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\LicenseUI70U.dll
I.A...R 6915 2011-09-12 09:35 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Menus\allsystem.mnu
I.A...R 8726 2012-06-04 11:14 CRT7\SecureCRSecureFXPortable\App\VanDyke Clients\Menus\default.mnu
............此处省略94个文件信息
相关资源
- 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汉化绿色
- Vector Magic Desktop 汉化绿色版
- 32位 绿色版 jre7
- jdk1.6 64位免安装纯绿色
- origin7.5绿色免安装版.rar
- notepad++ 全插件绿色版
- mac securecrt 8.0.4 破解版
- 专业的函数绘图软件:origin-8.0绿色破
- cygwin绿色版本
- Git-2.10.2-64 官方绿色版
- maxplus-II
- scrt-7.3.3-779.ubuntu13-64.x86_64.deb
- DiskGenius绿色版.zip
- source insight4-绿色版win10
- Vim绿色带插件版配置完好直接使用g
- secure8.5_for_linux.tar.gz
- SecureCrt for mac93347
- 电子电路Multisim7绿色免安装版
- xshell 6 Plus 破解版 无限制 破解 绿色版
- 解决api-ms-win-crt-runtime-l1-1-0.dll 丢失问
- SecureCRT中文免安装版.zip
评论
共有 条评论