其他主题

VBS

待回答 0 个回答

较早的帖子,发布于 2017年1月16日。 其中的信息可能已经过时。

本帖暂无中文翻译,以下为英文原文。

问题 提问于 2017年1月16日

This is my script 

Option Explicit
Dim obj
Dim objShell

Set obj=CreateObject("wscript.shell")

Obj.run "cmd.exe"

Set objExecObject = objShell.Exec("cmd /cd")

I am new to this so im not sure what i am doing wrong it opens cmd.exe but does not execute. Can some one please tell me how 

I can get it to execute a command 

暂无回答

撰写回答

您的邮箱地址不会被公开。请勿发布密码。

This site uses Akismet to reduce spam. Learn how your comment data is processed.