asp中调用winrar.exe压缩文件时,为什么在windows 2003 server 下执行时不能增加文件到一个已经存在的xx.rar文件中?而XP可以。
perli 2007-11-02 05:34:17 asp中调用winrar.exe压缩文件时,为什么在windows 2003 server 下执行时不能增加文件到一个已经存在的xx.rar文件中?而XP可以。
代码如下:
RarSoftWarePath 'winrar.exe 路径,RarFilePath已有的压缩文件路径,Fpath=被压缩文件路径, aorx=a
sub rar(RarSoftWarePath,RarFilePath,FPath,aorx) 'rar过程
set shell=server.createobject( "wscript.shell ")
rarcmd= " " " "&RarSoftWarePath& " " " "&aorx& " -t -o+ "
shcmd=rarcmd& " " " "&RarFilePath& " " " " " "&FPath& " " " "
shell.run shcmd,0,true
set shell=nothing
end sub