Other topics

VBS

Unanswered 0 answers

Older post from January 16, 2017. Details may be out of date.

Question asked on Jan 16, 2017

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 

No answers yet

Write an answer

Your email address will not be published. Please never post passwords.

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