0

I want to launch a website with a batch file and have buttons for ok and cancel. If the user clicks on the ok button open the website and if they click on cancel nothing happens. So far I have this:

@echo off
start iexplore google.fr
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Tiniri
  • 1
  • 1
  • 1

1 Answers1

0

Try This

@ECHO OFF
:MENU
CLS
ECHO #########################
ECHO # Visit Google Homepage?#
ECHO #########################
ECHO.
ECHO.
set /P c=Visit Google Homepage ?[Y/N]?
if /I "%c%" EQU "Y" goto :VISIT
if /I "%c%" EQU "N" goto :MENU
goto :MENU
:VISIT
start iexplore google.fr
goto :MENU
Damo85
  • 65
  • 8
  • its working. but i need message box with buttons yes and no. – Tiniri May 17 '15 at 14:39
  • the only way you are going to get a dialog style batch file is with a tool like [WBAT](http://www.horstmuc.de/ui.htm). use the link to check it out. menues, buttons, input fields, checkboxes, radio buttons, list selection with batch files,i've used it and it's easy to do. – Damo85 May 18 '15 at 02:28
  • Download [WBAT here](http://www.horstmuc.de/int/wbat250.zip) and then run Demo.bat – Damo85 May 19 '15 at 01:59
  • thx ...the problem is your mass have always this file WBAT.COM – Tiniri May 19 '15 at 18:46