I've been out of the scripting game for a while now, but have been asked what I would think is a pretty simple thing. I need to do the following:
1. read the local services file
2. append lines to the file if they do not exist.
Anyone have a quick fix or direction?
Mike
Hey guys, long time no see.
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Hey guys, long time no see.
Hi mbrierley@gmail.com,Another possibility is to use findstr to search the file, and use "echo whatever >> services" to append if the text was not found.HTH,Bill