Search found 3 matches

by mail.sidney
28 Mar 2009 18:32
Forum: DOS Batch Forum
Topic: GOTO not working as it should
Replies: 4
Views: 7358

Finally fixed it

I fixed it. The reason for the script not working as it should was because the value of the variable was case sensitive. had to use a bit of string manipulation. after accepting the value from the user. had to convert it to upper case as i was comparing it to a upper case Y. Made the following modif...
by mail.sidney
28 Mar 2009 16:57
Forum: DOS Batch Forum
Topic: GOTO not working as it should
Replies: 4
Views: 7358

tried the modified code

Hi i modified the code as below... set /P F=Do you wish to see the backed up files[Y/N]: IF "!F!"=="Y" GOTO :SHOWARCH IF "!F!"=="N" GOTO :EOF Goto MENU Still doesnt work. It jumps directly to the Goto Menu and takes me back to the menu. I am surprised why the ...
by mail.sidney
28 Mar 2009 11:09
Forum: DOS Batch Forum
Topic: GOTO not working as it should
Replies: 4
Views: 7358

GOTO not working as it should

Hi, Have created a script to backup files based on user input. Pretty simple but i am having a problem getting the GOTO functions working..namely the ones below GOTO SHOWDOCS GOTO SHOWARCH The script directly takes me back to the menu once the prompt checks if i want to see the backed up files. Need...