Cun Zhang’s Blog

October 5, 2008

Chatzilla Shortcut On Desktop

Filed under: Windows — Tags: , — Cun Zhang @ 22:30

Most times, I just want to use chatzilla to connect irc server without  Firefox browser opened. I googled and found a solution:

1.Create a shortcut for Firefox on the desktop, and rename it to “Chatzilla”

2. Change the target to “D:\Program Files\Mozilla Firefox\firefox.exe” -chrome chrome://chatzilla/content/chatzilla.xul
Deletion Reason: Using the above shortcut, you can start Chatzilla,but chatzilla auto-connect URLs can’t work.
Change the target to “D:\Program Files\Mozilla Firefox\firefox.exe” -chat

Now  Double click the “Chatzilla” shortcut, you will open chatzilla without firefox browser opening.

Reference

[1]Firefox’s  Command line arguments

http://kb.mozillazine.org/Command_line_arguments

May 29, 2008

filezilla as sftp client

Filed under: Linux, Windows — Tags: , — Cun Zhang @ 12:55

Today I review filezilla’s homepage, and find it has supported SSH File Transfer Protocol (SFTP). A few days before, I have search a good sftp client for so many times, but just find winscp and SSH Secure File Transfer Client.

Of course, the last two are good too, but I like filezilla more :)

The following is about FileZilla Features

Overview

FileZilla Client is a fast and reliable cross-platform FTP, FTPS and SFTP client with lots of useful features and an intuitive interface.

Features

Among others, the features of FileZilla include the following:

  • Easy to use
  • Supports FTP, FTP over SSL/TLS (FTPS) and SSH File Transfer Protocol (SFTP)
  • Cross-platform. Runs on Windows, Linux, *BSD, OSX and more
  • Available in many languages
  • Supports resume and transfer of large files >4GB
  • Powerful Site Manager and transfer queue
  • Drag & drop support
  • Configurable Speed limits
  • Filename filters
  • Network configuration wizard
  • Remote file editing
  • Keep-alive
  • FTP-Proxy support

May 26, 2008

WinSCP: Free SFTP, FTP and SCP client for Windows

Filed under: Windows — Tags: , , — Cun Zhang @ 9:10

WinSCP is a good and convenient client to upload/download files from ssh server.

WinSCP is an open source free SFTP client and FTP client for Windows. Legacy SCP protocol is also supported. Its main function is safe copying of files between a local and a remote computer.

For more information, you can visit WinSCP’s homepage:

http://winscp.net

January 6, 2008

ANSYS安装自动配置批处理脚本

Filed under: Windows — Tags: , — Cun Zhang @ 20:50
ANSYS安装自动配置批处理脚本
村长原创
版权声明:转载时请以超链接形式标明文章原始出处和作者信息
(村长也来个版权声明玩玩 ^_^)
  同学和我每次重装完XP系统后,总得重装ANSYS,进行很多没有水平的重复性操作,烦琐至极。上两天,突发奇想,写个批处理脚本,双击就能完成相关操作岂不是更好?
   村长会一点点sed,用sed写了如下的批处理脚本。
echo off echo SERVER >tempfile ipconfig /all |sed -n "/Host Name/p"|sed "s/-//g"|sed "s/.*: \(.*\)/\1/g" >>tempfile ipconfig /all |sed -n "/Physical Address/p"|sed "s/-//g"|sed "s/.*: \(.*\)/\1/g" >>tempfile echo 1055 >>tempfile sed -i "N;N;N;s/\n/\t/g" tempfile sed "1d" ansys.dat>>tempfile copy tempfile ansys.dat ansys.exe -i ansys.dat -o license.dat if not exist "C:\Program Files\Ansys Inc\Shared Files\Licensing". mkdir "C:\Program Files\Ansys Inc\Shared Files\Licensing" copy license.dat "C:\Program Files\Ansys Inc\Shared Files\Licensing" echo Windows Registry Editor Version 5.00 >tempfile echo [HKEY_CURRENT_USER\Environment] >>tempfile echo -ANSYSLMD_LICENSE_FILE- = -1055@ >temp ipconfig /all |sed -n "/Host Name/p"|sed "s/-//g"|sed "s/.*: \(.*\)/\1/g" >>temp echo - >>temp sed -i "s/-/\"/g" temp sed -i -e "2N" -e "s/\n//" temp sed -i -e "N" -e "s/\n//" temp sed -i "s/ //g" temp type temp>>tempfile reg import tempfile del tempfile del temp del ansys.txt
 
 
  虽能完成任务,但费了村长太多的时间,而且脚本不够简洁,使用者还得下载sed,让村长很不满意。因此,在linuxsir发了一个帖子,请教高手优化,得到了lxmxn 朋友的帮助。在此感谢lxmxn。村长又写出了下面的脚本:
rem this bat file is used to create keygen file and add user environment ANSYSLMD_LICENSE_FILE automatically. @echo off & Setlocal EnableDelayedExpansion rem get mac address from the output of command GETMAC; for /f %%a in (’getmac /nh’) do set mac=%%a :: get rid of charactor - in %mac% set mac=%mac:-=% rem replace the computer name and mac in ansys.dat with yours echo SERVER %ComputerName% %mac% 1055>tempfile (for /f "delims=: tokens=1*" %%a in (’findstr /n .* ansys.dat’) do (     if %%a geq 2 echo\%%b ))>>tempfile :: create keygen file ansys.exe -i tempfile -o license.dat :: copy keygen file to "C:\Program Files\Ansys Inc\Shared Files\Licensing" if not exist "C:\Program Files\Ansys Inc\Shared Files\Licensing". mkdir "C:\Program Files\Ansys Inc\Shared Files\Licensing" copy license.dat "C:\Program Files\Ansys Inc\Shared Files\Licensing" :: add user environment ANSYSLMD_LICENSE_FILE=1055@ComputerName set regpath=HKEY_CURRENT_USER\Environment ::user environment :: regpath=HKEY_CURRENT_USER\Environment reg add "%regpath%" /v "ANSYSLMD_LICENSE_FILE" /d "1055@%ComputerName%" ::thank you lxmxn@linuxsir’s help ::enjoy yourself :: by cunzhang@HEU
村长提示:你可以下载该脚本,解压到ansys.dat所在目录。然后运行该脚本即可。
 
这次完全使用Win下的命令,同时脚本也得到了很大的简化!现在你只需要安装好ANSYS和ANSYS FlEXlm licence manager,然后运行该脚本。再启动“程序->ANSYS FLEXlm License Manager->ANSLIC_ADMIN Utility,点击 Start the License Manager ”,下面的status将显示 “License manager running”。这说明ANSYS的license服务已经启动成功。这时便可以启动ANSYS了。
 
Enjoy yourself!
村长
2008-1-5 17:24:01
 
 
 

March 31, 2007

WinPE+KV移动版杀毒

Filed under: Windows — Tags: , , — Cun Zhang @ 20:58

< ![CDATA[

WinPE+KV移动版杀毒

村长

  现在病毒越来越强了,中病毒后常常无法进入系统,甚至进入安全模式,由于感染了所有盘符,即时重装系统也无济于事。没有办法,只能全部格式化所有盘符,然后再重装系统。费时、费事倒是不打紧,最要命的是多年的文档、软件全化为泡影。心疼啊!!!

  今年五一的时候,同学用我机器,我就曾有过类似的痛苦。病毒感染所有盘符下的EXE文件,又不想删除多年积攒的软件,怎么办?最后终于找到办法,使用KVDOS,用Windows安装盘进入Dos,运行kvdos进行杀毒。由于病毒太多,还得采取点措施,比如不杀C盘(系统分区),其他分区不太要紧的可执行文件都删除。这样杀毒就比较快了,不过还是需要花很多时间的。其它分区杀完毒后,删除系统分区,再重装系统。折腾了大半天才搞定了。

  最近同学中了pagefile.pif病毒。由于现在KVDOS已经不再更新了,我又不会更新病毒库。结果病毒没有检查出来,无法杀毒。上网也没有找到什么好的办法。后来在欣子慧朋友的博客上找到了一个专杀,确实可以检查出同学给我传的病毒,不过却无法正常在中毒机器上运行。后来跟欣子慧交流,他(她?,待考 ^_^)说再配合他的那个软件windows贴心助手

Older Posts »

Powered by WordPress