安装xylftp的批处理代码

xylftp的客户端基本上完成了,准备做一个发行版,于是牵扯到安装的问题,王聪写的是Linux里的Makefile,我写的是win下的批处理。在此谢谢刘洋、王聪等的帮助。

安装批处理代码: 

::Copyright @ kongjianjun@gmail.com
::2007.6.5

@echo off
echo Welcome to use Xylftp for Windows!And you must have a JVM environment.
echo Your Working Directory is:
cd
echo And the software will be install C:”Program Files”xylftp

javac XylFTPMain.java
jar cfm xylftp.jar manifest.mf *.class
if not exist C:”Program Files”xylftp mkdir C:”Program Files”xylftp 
move xylftp.jar C:”Program Files”xylftpxylftp.jar
cd ../doc/
copy User_Manual_Client.pdf C:”Program Files”xylftpUser_Manual_Client.pdf
echo Creat link!

echo @echo off >C:WINDOWSsystem32xylftp.bat
echo java -jar “C:Program Filesxylftpxylftp.jar” %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 >>C:WINDOWSsystem32xylftp.bat
echo You have successly install the software!

卸载批处理代码:

::Copyright @ kongjianjun@gmail.com
::2007.6.5
@echo off
del *.class
del C:WINDOWSsystem32xylftp.bat
del C:”Program Files”xylftpxylftp.jar
del C:”Program Files”xylftpUser_Manual_Client.pdf
rmdir C:”Program Files”xylftp

2 thoughts on “安装xylftp的批处理代码

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.