Search found 6 matches
- 05 Apr 2011 07:45
- Forum: DOS Batch Forum
- Topic: Compare strings and deleting strings
- Replies: 3
- Views: 5776
Re: Compare strings and deleting strings
1) Parse through one file and cut out any strings that are exactly the same and have them redirected to a new file. So, for example, if I had three "test" in the file it would strip away all three of them and redirect to a new file. An example of your input and your expected output speaks...
- 05 Apr 2011 07:16
- Forum: DOS Batch Forum
- Topic: Compare strings and deleting strings
- Replies: 3
- Views: 5776
Compare strings and deleting strings
Hey guys, I've tried over the past few days to come up with a solution to this and I haven't found a way to do it. What I am trying to do is 1) Parse through one file and cut out any strings that are exactly the same and have them redirected to a new file. So, for example, if I had three "test&...
- 03 Apr 2011 08:58
- Forum: DOS Batch Forum
- Topic: Annoying string wont go away
- Replies: 5
- Views: 6290
Re: Annoying string wont go away
Hey guys, I am trying to reformat a current list of all the students where I work. The text file I have has 2-3 students per line and each are delimited by a space. I want to be able to create a list with each student on it's own line. Not every line has 3 students though, some only have 2. What I ...
- 03 Apr 2011 08:13
- Forum: DOS Batch Forum
- Topic: Annoying string wont go away
- Replies: 5
- Views: 6290
Annoying string wont go away
Hey guys, I am trying to reformat a current list of all the students where I work. The text file I have has 2-3 students per line and each are delimited by a space. I want to be able to create a list with each student on it's own line. Not every line has 3 students though, some only have 2. What I f...
- 26 Jan 2011 17:40
- Forum: DOS Batch Forum
- Topic: String Comparison
- Replies: 7
- Views: 10119
Re: String Comparison
Hi flexbuffchest, you can try something like this for %%T in ("/version" "/v" "-v") DO if "%~1" == "%%~T" goto :GetVersion hope it helps jeb Oh wow, it never crossed my mind to use a for loop Yes this fixed my problem perfectly. I feel kind of embar...
- 26 Jan 2011 16:25
- Forum: DOS Batch Forum
- Topic: String Comparison
- Replies: 7
- Views: 10119
String Comparison
Hello, As part of a larger script I need to figure out how to use the string comparison to accept multiple values. I am doing this so that multiple different command options can be entered for the same thing. The basic structure that I have in my script right now is if "%1"=="/version...