Saved Bookmarks
| 1. |
Solve : How to pass a comma delimited string to the DOS batch file?? |
|
Answer» I want to pass a string contains the comma, such as "A,B,C", to the DOS batch file. I want the whole string to be treated as ONE, not THREE separated parameters, how can I accomplish this? here is the example: Quote > type test.bat What I expect is: test A,B,C the batch file will call that external program in the format of external_program /para:"A,B,C"Quote from: OldJack on October 13, 2007, 10:38:32 AM here is the example: OK I'm with you now. First add quotes test "a,b,c" Then remove them with the ~ modifier in the batch file if you need to or just LEAVE them. Quote Excellent! Thanks. Quote
|
|