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

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

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.

link|improve this answer
I can't edit the script. – droidgren Jul 7 '11 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 '11 at 6:41
Ok Thanks for the answer. – droidgren Jul 10 '11 at 14:46
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.