Computing.Net > Forums > Programming > Batch File Possibilities

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Batch File Possibilities

Reply to Message Icon

Name: jcgun
Date: May 5, 2009 at 08:49:41 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

Hey,
another problem. At the bottom of this post is my coding. What i want done is, if the input isn't on the list, i want it to redirect to 'UNKNOWN'. Everytime i do this with the current coding however, it crashes.
I've checked the rest of the coding, and i'm sure thats not the problem.
This problem is probably the easiest thing in the world to fix, but i cant (for the life of me) figure it out.

if not "%input:exit=%"=="%input%" exit
if not "%input:close=%"=="%input%" exit
if not "%input:made=%"=="%input%" goto who made you
if not "%input:genius=%"=="%input%" goto who made you
if not "%input:fact=%"=="%input%" goto rndmfct
if not "%input:love=%"=="%input%" goto love
if not "%input:hate=%"=="%input%" goto hate
if not "%input:look=%"=="%input%" (
if not "%input:like=%"=="%input%" goto appearance
)
if not "%input:what=%"=="%input%" (
if not "%input:are=%"=="%input%" (
if not "%input:you=%"=="%input%" goto what are you
))
if not "%input:old=%"=="%input%" (
if not "%input:you=%"=="%input%" goto how old are you
)
if not "%input:age=%"=="%input%" goto how old are you
if not "%input:where=%"=="%input%" (
if not "%input:from=%"=="%input%" goto where do you come from
)
goto UNFOUND



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


copying files dated today... get filename from filenam...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch File Possibilities

Batch file to extract certain lines www.computing.net/answers/programming/batch-file-to-extract-certain-lines/17465.html

Batch File call Registry www.computing.net/answers/programming/batch-file-call-registry/12089.html

batch file, display time www.computing.net/answers/programming/batch-file-display-time/2950.html