Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How To Create Y/N Question On Batch Script

@echo off

:choice
set /P c=Are you sure you want to continue[Y/N]?
if /I "%c%" EQU "Y" goto :somewhere
if /I "%c%" EQU "N" goto :somewhere_else
goto :choice


:somewhere

echo "I am here because you typed Y"
pause
exit

:somewhere_else

echo "I am here because you typed N"
pause
exit
Comment

PREVIOUS NEXT
Code Example
Shell :: linux preserve alias 
Shell :: wget health check 
Shell :: install Dirichlet Multinomial R package 
Shell :: slack does not open xdg-open 
Shell :: wc exclude . and .. directories and empty or commented lines 
Shell :: find powershell profiles linux 
Shell :: Command to get list of shell variables with less length in bash 
Shell :: linux manjaro tg link 
Shell :: pip install pi 
Shell :: install fabric sample 
Shell :: head linux 
Shell :: gnome theme terminal 
Shell :: linux tar.gz 
Shell :: pythonlibs install 
Shell :: vagrant download 
Shell :: unix file systems 
Shell :: Unit Tests 
Shell :: substring if statement variable shell script 
Shell :: windows kill process running on port 
Shell :: git push ubuntu need to supply email and password everytime 
Shell :: how to I paste in gitbash windows 
Shell :: send tag to remote git 
Shell :: gatsby-plugin-feed-generator 
Shell :: remove MiniDLNA 
Shell :: getssl 
Php :: how remove from string in php 
Php :: var_dump smarty 
Php :: wc get product image 
Php :: how to migrate just one table in laravel 
Php :: php get user agent 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =