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
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
Summary: Hi Reno, wow, it seems you guys really eat and sleep with batch files! lol. I just woke up over here so I missed your replies but thank you for replying. =) In regards to the second part... that is...
Summary: Hey, I have a batch file that I have written that will (eventually) install a few files onto the users computer from a CD Rom. However, I am wondering if it is possible to get some data from a registr...
Summary: Hello folks, If anyone is up to it, I have a couple of requests. First, I ghave been learning from a little batch file that backs up a file or two from my "c" drive to my "d" drive. It works really...