many thanks - I have not seen code that starts with the intended filename at the beginning before - did not know that was possible.
so much still to learn
thanks
Search found 6 matches
- 17 Jan 2018 12:38
- Forum: DOS Batch Forum
- Topic: findstr because of extra comma
- Replies: 3
- Views: 3699
- 17 Jan 2018 10:01
- Forum: DOS Batch Forum
- Topic: findstr because of extra comma
- Replies: 3
- Views: 3699
findstr because of extra comma
Hello group, We have a script that compares a file of email addresses (dump.txt) with a list of employees (pwd_raw.txt). findstr /g:"dump.txt" "pwd_raw.txt" >output.txt The file of email addresses has the email addresses, one per line, BUT it also includes a comma "," at the end of each line, immedi...
- 27 Sep 2016 12:54
- Forum: DOS Batch Forum
- Topic: Deleting Part of a String That Includes Spaces
- Replies: 3
- Views: 3381
Re: Deleting Part of a String That Includes Spaces
%computername% clearly had gone out of my head - thanks, I needed that!
- 27 Sep 2016 11:57
- Forum: DOS Batch Forum
- Topic: Deleting Part of a String That Includes Spaces
- Replies: 3
- Views: 3381
Deleting Part of a String That Includes Spaces
We are trying to retrieve the computer name on a single line. The command I am using is inserting this with preceding text on the line: ipconfig/all | find "Host Name" >c:\whoami\whoami2.txt produces Host Name . . . . . . . . . . . . : MyPCName but we are trying to have the txt file read: ...
- 27 Sep 2016 08:19
- Forum: DOS Batch Forum
- Topic: Trying to insert text to end of every line
- Replies: 7
- Views: 8893
Re: Trying to insert text to end of every line
Thank you so much to all who replied
- 26 Sep 2016 15:08
- Forum: DOS Batch Forum
- Topic: Trying to insert text to end of every line
- Replies: 7
- Views: 8893
Trying to insert text to end of every line
Hello DOSTips community, I have a file with about 300 lines of text in it. We need to add the exact same phrase at the end of every line. Example Text: Pardon the rude baby Slugs never behave themselves Pebbles itch ferociously Trying to get: Pardon the rude baby please Slugs never behave themselves...