0

I want to launch a VBScript from a windows xp command promt enter a value to the first box that pops up from the vbsscript.

What I have tried (Want to enter value 2 to the script):

START CScript C:\vbscript.vbs 2
START CScript C:\vbscript.vbs < 2

None does work.

Thank you

1 Answer 1

1

I would need to see the script to be sure, but I suspect that you need to change the script to use the WScript.Arguments collection insted of opening a dialog box.

2
  • I can't edit the script.
    – droidgren
    Jul 7, 2011 at 6:38
  • Then you can't do what you want. At least not in batch file. You could use another scripting language like AutoIt or a programming language like C# to grab the dialog box and enter the information, but not a batch file.
    – EBGreen
    Jul 7, 2011 at 6:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .