This message was deleted.
# _general
s
This message was deleted.
d
Do u try find โ€˜โ€œSearchStringโ€œโ€˜ -> single and then the double
j
Doesn't work ๐Ÿ˜ž
d
Hmmm then maybe escape with \
j
Well, this seems to work - find """SearchString"""
d
Lol ok. Triple are always better
๐Ÿ˜ฒ 1
w
j
Thanks - is it possible to use a " as a delimiter in the for command? It would appear not ๐Ÿ˜ž
Answering my own question here again ๐Ÿ™‚ this works to use " as a delimiter for /f delims^=^"^ tokens^=1
w
There was a book from the late 80s I kept for years that gave lots of examples of all the odd things you could do with batch/cmd files. It was astonishing what you could do.
j
Yep, I wrote a batch file for an NT4 domain that did what GPO Restricted Groups and User Rights policies would do. I also had a batch file that would apply all the latest patches to servers, in the days before WSUS came along
Driven by text file databases, both of them ๐Ÿ™‚
w
My first AD mentor had a site with tons of examples of very advanced batch files and NT utilities. The site has been revamped from 20 years ago. Here is the current. https://brainwavecc.com/brainwave-utilities/
There is also Windows NT Shell Scripting by Tim Hill from 1998 (which I found still on my bookshelf). Too bad you aren't closer. I would give it to you.
j
Don't sweat it, I'm trying to put together a retirement strategy here too ๐Ÿ™‚
w
Nah, you have at least another 30 years to go! LOL
n
16 replies and not a single person shaming him for using batch files...
j
I've just written an equivalent routine in PowerShell and it processes slower
w
Absolutely nothing wrong with using a batch file
โœ… 2
๐Ÿ‘† 1