爱问知识人 爱问教育 医院库

vbs出现问题

首页

vbs出现问题

WSHshell.run "cmd.exe /d:"
WSHshell.run "cmd.exe /md sb"
WSHshell.run "cmd.exe /attrib h r s sb"
WSHshell.run "cmd.exe /cd sb"
WSHshell.run "cmd.exe /md sb.."
Program1 = "C:sbsb.."

提交回答

全部答案

    2019-06-12 17:54:59
  • 1. 没有申明WSHShell对象。
    2. 执行脚本的用户有没有权限。
    3. 有可能sb目录已存在,故创建不了。
    打下注释然后一行一行的调试。

    巴***

    2019-06-12 17:54:59

  • 2019-06-12 17:50:12
  • 在第一行写上:Set WSHshell=CreateObject("wscript.Shell")
    Set WSHshell=CreateObject("wscript.Shell")
    WSHshell.run "cmd.exe /d:"
    WSHshell.run "cmd.exe /md sb"
    WSHshell.run "cmd.exe /attrib h r s sb"
    WSHshell.run "cmd.exe /cd sb"
    WSHshell.run "cmd.exe /md sb.."
    Program1 = "C:sbsb.."
    改成这样

    宋***

    2019-06-12 17:50:12

类似问题

换一换
  • VB 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 175-194
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):