Search found 2 matches
- 27 Jun 2012 14:44
- Forum: DOS Batch Forum
- Topic: Skip characters in txt i/o batch script?
- Replies: 1
- Views: 1634
Skip characters in txt i/o batch script?
I'm trying to do a line by line comparison of 2 .txt files. But the problem is for the first file I'd like to start comparing line by line after the first 9 characters of each line of the first 10 lines in the 1st file with the second file. I read somewhere that you can extract substring, but I've o...
- 27 Jun 2012 10:54
- Forum: DOS Batch Forum
- Topic: Multiple conditions in For loop batch
- Replies: 1
- Views: 2607
Multiple conditions in For loop batch
I'd like to print each line of 2 separate txt files alternately using a for loop in a batch file, I tried using an AND but was given: "AND was unexpected at this time" in cmd.exe when I ran my batch. Any ideas? FOR /F "tokens=*" %%F in (!logPath!) AND for /f "tokens=*" ...