Search found 5 matches

by rbateman
05 Oct 2012 13:55
Forum: DOS Batch Forum
Topic: Batch File not working with IF,SET combination
Replies: 13
Views: 7980

Re: Batch File not working with IF,SET combination

To Squashman. I do not know how to properly use the board's tools so please forgive me. All I would like is to have someone answer my question so I can say thank you. Considering that I have reposted and rephrased my question about 5 times now, I suspect that people on this board will start to get a...
by rbateman
05 Oct 2012 13:04
Forum: DOS Batch Forum
Topic: Batch File not working with IF,SET combination
Replies: 13
Views: 7980

Re: Batch File not working with IF,SET combination

rbateman wrote: May someone explain why the line IF %SECTION%==3 ( SET SECTION="3.3 NO SURGE LINE" GOTO START ) Doesn't work. "That line works fine here, and you would have seen that it you had tried my debugging section above." That line does not work fine here and you know this...
by rbateman
05 Oct 2012 11:57
Forum: DOS Batch Forum
Topic: Batch File not working with IF,SET combination
Replies: 13
Views: 7980

Re: Batch File not working with IF,SET combination

rbateman wrote: May someone explain why the line IF %SECTION%==3 ( SET SECTION="3.3 NO SURGE LINE" GOTO START ) Doesn't work. "That line works fine here, and you would have seen that it you had tried my debugging section above." That line does not work fine here and you know this...
by rbateman
05 Oct 2012 01:22
Forum: DOS Batch Forum
Topic: Batch File not working with IF,SET combination
Replies: 13
Views: 7980

Re: Batch File not working with IF,SET combination

Thank you for helping me. However, I still do not understand why my code fundamentally does not work when 3 is inputted. May someone explain why the line

IF %SECTION%==3 ( SET SECTION="3.3 NO SURGE LINE"
GOTO START )

Doesn't work.
by rbateman
04 Oct 2012 15:35
Forum: DOS Batch Forum
Topic: Batch File not working with IF,SET combination
Replies: 13
Views: 7980

Batch File not working with IF,SET combination

I have no idea why this .bat is not working. Line 40 of the code requests input from the user and assigns the value to the variable called "SECTION". If the input is not 1,2,3, or 4, the result will loop to the piece of code called :MISTAKE and display the message that the input is incorre...