I can't run the file cmd.exe /k "...", I get the error 800a0401!
I used the method set a = WScript.Createobject("WScript.Shell")
Error on line 3, character 14.
dim a
set a = WScript.CreateObject("WScript.Shell")
a.run cmd /k "@echo off && echo Hello World && pause && exit"
I tried to write a = nothing at the end of the code and replaced cmd with cmd.exe
Before a I put dim a
Nothing helped
Run()method expects a valid string which starts and ends with double quotes, this is VBScript 101. As the Documentation says - ""String value indicating the command line you want to run. You must include any parameters you want to pass to the executable file..