• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Windows Shell Scripting Help

Kush

High On Life!
#1
ok guys same thing as linux hehe, i actually figured out a lot of stuff in an hour by trial and error, felt like it would be annoying to ask but how do i use an if not statement properly?

i want to ask the use a question say

What is the Space Ship's Name?
and if the user doesnt enter enterprise in any casing (i used /i)
then it tells him he is incorrect
set /P Answer1=1.What is the Space Ship's Name?
echo ******************************
if /i %Answer1%==Enterprise echo You Are Correct
if not /i %Answer1%==Enterprise echo You Are Incorrect <-- cant get this part to work
 

Kush

High On Life!
#3
well it is used as an underlying line in, i also did use echo. to create blank lines, i tried to use else but else isnt recognized, i finished it though thanks for trying to help
 

Kush

High On Life!
#5
i actually got it like an hour or so ago, but saw that no one replyed so i didnt feel like bumping the thread hehe :D thanks for trying though
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,014
Latest member
sanoravies