Squashman...
I did not pay attention to the previous post.
Thank you for your assistance with the code.
Ken
Search found 34 matches
- 13 Feb 2012 03:34
- Forum: DOS Batch Forum
- Topic: replacing the whole line based on substring of it.
- Replies: 12
- Views: 12722
- 13 Feb 2012 03:17
- Forum: DOS Batch Forum
- Topic: replacing the whole line based on substring of it.
- Replies: 12
- Views: 12722
Re: replacing the whole line based on substring of it.
Foxidrive...
I see now...this is what I was looking for.
Thank you for your help
Ken
I see now...this is what I was looking for.
Thank you for your help
Ken
- 12 Feb 2012 06:09
- Forum: DOS Batch Forum
- Topic: replacing the whole line based on substring of it.
- Replies: 12
- Views: 12722
Re: replacing the whole line based on substring of it.
Foxidrive...
This is the only way to use this code by calling it from another batch or from the command line.
I was hoping it could be contained in a aready created batch file without calling a seprate batch.
I can still use it.
Thanks for the code and your help.
Ken
This is the only way to use this code by calling it from another batch or from the command line.
I was hoping it could be contained in a aready created batch file without calling a seprate batch.
I can still use it.
Thanks for the code and your help.
Ken
- 11 Feb 2012 08:37
- Forum: DOS Batch Forum
- Topic: replacing the whole line based on substring of it.
- Replies: 12
- Views: 12722
Re: replacing the whole line based on substring of it.
Foxidrive...
Is there a way to hard code the makfi.txt , maki2.txt , apple and orange then use this code in a already created batch file. Or would it be better to just call search and replace.bat with the parms.
Ken
Is there a way to hard code the makfi.txt , maki2.txt , apple and orange then use this code in a already created batch file. Or would it be better to just call search and replace.bat with the parms.
Ken
- 11 Feb 2012 08:13
- Forum: DOS Batch Forum
- Topic: replacing the whole line based on substring of it.
- Replies: 12
- Views: 12722
Re: replacing the whole line based on substring of it.
Foxidrive...
Very nice!
Thank you
Ken
Very nice!
Thank you
Ken
- 11 Feb 2012 06:55
- Forum: DOS Batch Forum
- Topic: replacing the whole line based on substring of it.
- Replies: 12
- Views: 12722
Re: replacing the whole line based on substring of it.
foxidrive... Thanks for the respose to this post. I am learning from this site but I don't understand how your code ties into aGermans example. Please explain how: To apply your code using (input file) containing "I have a apple" with (output file) containing "I have a orange" My...
- 04 Feb 2012 12:57
- Forum: DOS Batch Forum
- Topic: replacing the whole line based on substring of it.
- Replies: 12
- Views: 12722
Re: replacing the whole line based on substring of it.
After replacing the text found. Is there a way to write the entire line with the changed word to another file?
example source text
I have a apple - Replace text (apple) with (orange)
example output text
I have a orange - (all words in output file)
Is this possible to do?
Thanks
Ken
example source text
I have a apple - Replace text (apple) with (orange)
example output text
I have a orange - (all words in output file)
Is this possible to do?
Thanks
Ken
- 03 Feb 2012 14:24
- Forum: DOS Batch Forum
- Topic: Count two strings in a text file
- Replies: 4
- Views: 5503
Re: Count two strings in a text file
Aacini and Ed Dyreen
Thank you for your help with this code.
Ken
Thank you for your help with this code.
Ken
- 02 Feb 2012 07:45
- Forum: DOS Batch Forum
- Topic: Count two strings in a text file
- Replies: 4
- Views: 5503
Count two strings in a text file
How do I count two strings in a text file.
example text:
Hello Today is a good day
I would like to count all the words 'Hello' and 'day' and pipe it into another text file
example of output
Found the following words - Hello 5 times and day 10 times
Thank you for your help
Ken
example text:
Hello Today is a good day
I would like to count all the words 'Hello' and 'day' and pipe it into another text file
example of output
Found the following words - Hello 5 times and day 10 times
Thank you for your help
Ken
- 12 Sep 2011 12:08
- Forum: DOS Batch Forum
- Topic: Is there an easy way to echo 31 days from current date?
- Replies: 6
- Views: 6738
Re: Is there an easy way to echo 31 days from current date?
Thank You Robert and !k...
I saw the code from this site... I was just hoping there was something with maybe a few lines of code. I will use what is posted here.
Thank you again
Ken
I saw the code from this site... I was just hoping there was something with maybe a few lines of code. I will use what is posted here.
Thank you again
Ken
- 12 Sep 2011 10:12
- Forum: DOS Batch Forum
- Topic: Is there an easy way to echo 31 days from current date?
- Replies: 6
- Views: 6738
Re: Is there an easy way to echo 31 days from current date?
Thank you for the quick response...
Is there any way to do this without creating and using a vbs file?
I know the temp file gets deleted after the file is closed but can this be done without any files being created using dos batch.
Thank you
Ken
Is there any way to do this without creating and using a vbs file?
I know the temp file gets deleted after the file is closed but can this be done without any files being created using dos batch.
Thank you
Ken
- 12 Sep 2011 07:12
- Forum: DOS Batch Forum
- Topic: Is there an easy way to echo 31 days from current date?
- Replies: 6
- Views: 6738
Is there an easy way to echo 31 days from current date?
Hello All... Is there an easy way to echo to the screen the date showing 31 days ahead of the current date each time the batch file is executed? example: - The file is opened today and the system date is 9/12/2011 - I would like it to echo to screen 10/13/2011. Tomorrows system date 9/13/2011 - echo...
- 06 Sep 2011 15:07
- Forum: DOS Batch Forum
- Topic: Insert text into column b csv file
- Replies: 25
- Views: 32987
Re: Insert text into column b csv file
Robert... This is Beautiful work!!
WOW...
WOW...
WOW...
Thank you so much for your time and assistance with this... You have helped me very much.
Ken
WOW...
WOW...
WOW...
Thank you so much for your time and assistance with this... You have helped me very much.
Ken
- 05 Sep 2011 01:54
- Forum: DOS Batch Forum
- Topic: Insert text into column b csv file
- Replies: 25
- Views: 32987
Re: Insert text into column b csv file
Robert... Thanks for all Your help! I figured it out! I created a Simple menu that calls your file and it checks to see if the Testfile2.csv exist if the file does exist then it displays a message ' File being used - Try again '. This way the data does not get corrupt if multiple people are trying t...
- 03 Sep 2011 07:22
- Forum: DOS Batch Forum
- Topic: Insert text into column b csv file
- Replies: 25
- Views: 32987
Re: Insert text into column b csv file
Robert - One more question I would like to add to my previous Post - If I just want to view the Testfile.csv using Option 1. View File. Does it need to Create the Testfile2.csv?.
Thank You again
Ken
Thank You again
Ken