iis6下wscript.shell问题
原先在iis5下运行得很好的代码
dim delShell,delcomm,delRetCode,delcmd,rarpath
rarpath="d:\"
Set delShell = Server.CreateObject("WScript.Shell")
delcomm= RarPath & "cmd.exe /c del "
delcmd=delcomm & "D:\test\*.*"
delRetCode = delShell.Run(delcmd,1, true)
Set delShell = nothing
提示Microsoft VBScript 运行时错误 错误 '800a0046'
没有权限
D:\test\ 和d:\已经设置成everyone完全控制
另:iis6运行在web2 而程序代码是在web1是不是和这个有关系
查到的资料是iis6以iis5的隔离模式运行,也已经按照此方法操作成功,但是如果这样的话iis6的性能提升就用不上了
难道iis6中使用WScript.Shell就真的不行吗
有高人有好的解决办法吗