For some reason my code brings up an error stating that
Script: startup.vbs
Line: 10
Char: 2
Error: Invalid procedure call or argument
Code: 800A0005
Source: Microsoft VBScript Runtime Error
My code that I used: THE CODE
For some reason my code brings up an error stating that
Script: startup.vbs
Line: 10
Char: 2
Error: Invalid procedure call or argument
Code: 800A0005
Source: Microsoft VBScript Runtime Error
My code that I used: THE CODE
With vague details... This is how I've used variables with Wscript Shell Run.
Sub RunCommand(command)
cmd = "cmd /c "" & command & """"
set shell=createobject("wscript.shell")
shell.run cmd
set shell=nothing
End Sub
I would definitely say the code you provided has quite a few deficiencies in how it works and misuse of Subroutines versus Functions. Functions return something and subroutines do not.
iecho is regurgitating an entire string "vbyes parent:child true" and not truely the "child" value you're desiring since it doesn't operate like that. There's other things but you asked how to use variables for functions. There ya go. :)