我在sqlserver的作业中写了一段执行VBS的脚本,并让其每隔一分钟执行一次,为什么总是执行失败?

rollrock 2004-03-17 09:23:42
代码没有错。
set fso=Server.CreateObject("scripting.filesystemobject")
set tstm=fso.opentextfile("d:\1.txt",forwriting,true)
cnt="now is "&now
tstm.write(cnt)
tstm.close
set tstm=nothing
set fso=nothing
...全文
81 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
rollrock 2004-03-18
  • 打赏
  • 举报
回复
up
rollrock 2004-03-18
  • 打赏
  • 举报
回复
有没有 知道的
rollrock 2004-03-18
  • 打赏
  • 举报
回复
up
rollrock 2004-03-17
  • 打赏
  • 举报
回复
没人知道吗?帮着up一下也行啊
clkun 2004-03-17
  • 打赏
  • 举报
回复
关注。
rollrock 2004-03-17
  • 打赏
  • 举报
回复
sql server只是说执行失败,又没有说什么错误,在asp里正确无误
savingworld 2004-03-17
  • 打赏
  • 举报
回复
错误是什么?
dim fso,tstm
Const ForWriting = 2

set fso=Server.CreateObject("scripting.filesystemobject")
set tstm=fso.opentextfile("d:\1.txt",forwriting,true)
cnt="now is "&now
tstm.write(cnt)
tstm.close
set tstm=nothing
set fso=nothing
Heister 2004-03-17
  • 打赏
  • 举报
回复
有什么错误?
set tstm=fso.opentextfile("d:\1.txt",forwriting,true)

把forwriting用数字代替试试
rollrock 2004-03-17
  • 打赏
  • 举报
回复
还得顶

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧