Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

random conversation batch file

$
0
0

Hey I'm having trouble creating a batch file that will randomly pick from a list of phrases to answer to a phrase such as,  "hello" then the batch file will choose randomly from a list of answers such as "hey, hello, sup, or hi"   

A sample of the batch file i have is

cls
@ECHO OFF
title Folder Locker
:CONFIRM
echo ichigo....
set/p "cho=>"tensho
if %cho%==gestuga goto REPLY
if %cho%==gestuga goto REPLY
if %cho%=="heavenly moon cutting fang" goto REPLY1
if %cho%=="heavenly moon cutting fang" goto REPLY1
if %cho%==bye goto FINAL
echo Invalid choice.
goto FAIL
:FINAL 
shutdown /s /m \\computer jaydee-HP
goto CONFIRM
:REPLY1
echo gestuga tensho
goto CONFIRM
:REPLY
echo tensho
goto CONFIRM
:FAIL 
shutdown /s /t 200 /c "bye"
goto end
:End

 

all i can do is type out a a question and and have the same reply every time


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>