| 1. |
Solve : How to pass argument containing quotes to batch script? |
|
Answer» Hi Friends, This is obviously homework. Oh well though.WOW! This is the first time I saw BC pass an argument! Thank you for the lesson BC_P. I've noted that using %* allows for more than 9 variables to be used without the Shift command. D. Quote from: BC_Programmer on December 10, 2010, 08:23:34 PM This is obviously homework. Oh well though. Hi BC_Programmer, Thanks! BTW, how to judge if the passed auguments equal to I said, "you are so beautiful!" in demo.bat file. Code: [Select]If "%*"=="you are so beautiful!" (echo Why thank you!) else (echo You know I'm beautiful, you just won't SAY it!") |
|