hey, i am trying to create a batch file which takes input from a txt (abc.txt)
abc.txt is somthing like1-Nord-Polen:1
2-Süd-Polen:0
3-Litauen:1
4-Lettand:0
Now, what I need to do is to check the number(0/1) after : in txt file using bat file and if it is 0..skip it and if it is 1..copy that(ex.1-Nord-Polen) in a comma saparated do file.
copy txt file to do file using batch file
Page 1 of 11 Replies - 16395 Views - Last Post: 07 July 2011 - 05:16 AM
Replies To: copy txt file to do file using batch file
#2
Re: copy txt file to do file using batch file
Posted 07 July 2011 - 05:16 AM
What have you tried?
This would be relatively easy in Linux, cat file pipe to cut on delimiter character ':', field 2, grep for 0 or 1. What version of Windows is this running on? Do you have power shell installed?
This would be relatively easy in Linux, cat file pipe to cut on delimiter character ':', field 2, grep for 0 or 1. What version of Windows is this running on? Do you have power shell installed?
Page 1 of 1

New Topic/Question
This topic is locked


MultiQuote


|