Computing.Net > Forums > Programming > User input from VB script and pass to Bat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

User input from VB script and pass to Bat

Reply to Message Icon

Name: sim_tcr
Date: September 19, 2009 at 01:13:04 Pacific
OS: Windows XP
CPU/Ram: 1 GB
Subcategory: Batch
Tags: bat
Comment:

I have bat script which ask the user for a Build number and then process the deployment. see the code,

@echo off
set /p FILENAME=Enter the ICP-Advisor Channel Build number (eg. 0151):

I would like VB script asking user for the Build number and then pass it back to the bat file to continue processing.

can any one help me write the VB script code for the above



Sponsored Link
Ads by Google

Response Number 1
Name: sim_tcr
Date: September 19, 2009 at 02:28:36 Pacific
Reply:

sorted it out.

Code:

@echo off & setlocal

>$$$.vbs echo wsh.echo inputbox("ICP-Advisor Channel Build number(eg. 0151) :")

for /f "tokens=*" %%a in ('cscript//nologo $$$.vbs') do set var=%%a

I then used 'var' variable in my bat file.


1
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: User input from VB script and pass to Bat

Interaction between C and VB script www.computing.net/answers/programming/interaction-between-c-and-vb-script/14575.html

Hiding user input in a Batch File www.computing.net/answers/programming/hiding-user-input-in-a-batch-file/15928.html

VB script and access www.computing.net/answers/programming/vb-script-and-access/17150.html