Invalid attempt to call Exec without a command.

You called the WshShell.Exec() method but did not supply a command to execute.

To correct this error

  • strCommand is a required argument. It is a string that represents the command line used to run the script.

See Also

Reference

Exec Method (Windows Script Host)