windows2008下使用vbs问题。。。请教
我原来有个批处理任务,用于2003系统下,定时对oracle进行备份
但现在在windows2008下面出现问题,因为不懂,所以请教:
原文件
执行:wscript.exe orabak.vbs
orabak.vbs:
Option Explicit
On Error Resume Next
Dim fname, cmd
Dim WshShell
Dim strDate, arrDate
Set WshShell = CreateObject("WScript.Shell")
fname = Weekday(Date()) - 1
strDate = "Sun,Mon,Tue,Wed,Thu,Fri,Sat"
arrDate = split(strDate,",")
cmd = "exp log=..\Log\db1_" & arrDate(fname) & ".log file=..\Dmp\exoa_" & arrDate(fname) & ".dmp parfile=exoa.txt"
WshShell.run cmd
Set WshShell = Nothing
但现在在windows2008下面出现问题,因为不懂,所以请教:
原文件
执行:wscript.exe orabak.vbs
orabak.vbs:
Option Explicit
On Error Resume Next
Dim fname, cmd
Dim WshShell
Dim strDate, arrDate
Set WshShell = CreateObject("WScript.Shell")
fname = Weekday(Date()) - 1
strDate = "Sun,Mon,Tue,Wed,Thu,Fri,Sat"
arrDate = split(strDate,",")
cmd = "exp log=..\Log\db1_" & arrDate(fname) & ".log file=..\Dmp\exoa_" & arrDate(fname) & ".dmp parfile=exoa.txt"
WshShell.run cmd
Set WshShell = Nothing
...全文
相关推荐
VBS 脚本不能运行 提示Windows无法访问指定设备路径或文件
Windows无法访问指定设备路径或文件,您可能没有合适的权限访问这个项目.
WinCC flexible 2008 VBS参考
WinCC flexible 2008 VBS参考
Windows 2008 R2 安装ASP问题
Windows 2008 R2 安装ASP有很多设置才能正常开启原IIS6上关于ASP的支持,并且对于64位windows2008不支持32位FSO及相关上传组件问题的解决方案.
VBS真麻烦
NULL 博文链接:https://wooffen.iteye.com/blog/836226
windows 脚本 vbs
windows 脚本 vbs,加快速打开exe


