iis6下wscript.shell问题

tippointGmail tippointGmail 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
原先在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就真的不行吗

有高人有好的解决办法吗
...全文
评论 2
收藏 已收藏
分享
返回顶部
tippointGmail
IIS 8,329 成员 16,634 内容