Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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.

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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