Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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.

share|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

You must log in to answer this question.

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