Saved Bookmarks
| 1. |
Solve : Unable to get IF condition work in batch script? |
|
Answer» Below is my code Code: [SELECT]IF "%myvar"=="sri_test.txt" sri.bat Use "%myvar%" not "%myvar" As foxidrive told you this in alt.msdos.batch, Even when you correct that typo the code will *always* execute sri.bat because you are echoing it into the file and your for loop will set myvar to be the last line of the file. |
|