Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |