关于asp中使用wscript调用winrar进行压缩文件操作的问题
如题,程序代码如下:
Set oShell = Server.CreateObject("Wscript.Shell")
sCmd = AppPath & "_cmd.exe /c " & AppPath & "_rar.exe a -ep1 -t -o+ " & Server.Mappath("../temp") & "\" & sFileName &" "& sZipFolder &""
RetCode = oShell.Run(sCmd,1, True) ''执行压缩
Set oShell = Nothing
在我自己的机器上运行正常,没有问题;
但是把程序放到另一台机器上就出错:
错误 '80070002'
/user/slide_tray.asp,行274
其中行274就是"RetCode = oShell.Run(sCmd,1, True)"这一行.
我把_cmd.exe,_rar.exe,wscript.exe的权限都设置了everyone运行,且保存rar的目录为可写,还是有这个错误.
特来请教,急!谢谢!