User input from VB script and pass to Bat

September 19, 2009 at 01:13:04
Specs: Windows XP, 1 GB
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

See More: User input from VB script and pass to Bat

Report •

September 19, 2009 at 02:28:36
sorted it out.


@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.

Report •
Related Solutions

Ask Question