Search found 3 matches
- 05 Apr 2010 09:25
- Forum: DOS Batch Forum
- Topic: Error in If logic
- Replies: 4
- Views: 5264
Re: Error in If logic
That worked... Thanks. But, given the nature of issue I have been facing, I would wait for more executions before I can confidently say this corrected the issue
- 01 Apr 2010 14:11
- Forum: DOS Batch Forum
- Topic: Error in If logic
- Replies: 4
- Views: 5264
Re: Error in If logic
1) The first if condition itself is not true, so it should not even go into the ( section under the if condition.
2) The file SchStat.txt does have value and when do the echo %var1%, it works fine (after removing the first if logic).
2) The file SchStat.txt does have value and when do the echo %var1%, it works fine (after removing the first if logic).
- 01 Apr 2010 12:33
- Forum: DOS Batch Forum
- Topic: Error in If logic
- Replies: 4
- Views: 5264
Error in If logic
The below piece of code keeps erroring out saying "8 was unexpected at this time." anb its poiting to this line : "if %var1:~1,8% NEQ Disabled". Any thoughts? Very strange thing is it works sometimes... I have seen it work many times and it has given error also many times... Its ...