Microsoft DOS
--
Questions
--
Followers
Top Experts
Batch File - Replacing double quotes in a text file
How can I replace double quotes in a text file using a batch file?
I've seen a couple of answers pointing to http://www.batchfiles.co.nr but the example there doesn't appear to work if the string you are looking to replace is ".
I thought I could do it by reading the contents of the file into a variable and then using SET, but I can't find out how to read the file into a variable.
Or can I use a FOR loop which looks at each line in the file as a whole, rather than splitting the line using delimiters?
Thanks,
Angie
I've seen a couple of answers pointing to http://www.batchfiles.co.nr but the example there doesn't appear to work if the string you are looking to replace is ".
I thought I could do it by reading the contents of the file into a variable and then using SET, but I can't find out how to read the file into a variable.
Or can I use a FOR loop which looks at each line in the file as a whole, rather than splitting the line using delimiters?
Thanks,
Angie
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Thanks, I'll give it a try






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Microsoft DOS
--
Questions
--
Followers
Top Experts
Microsoft Disk Operating System (MS-DOS) was an operating system for x86-based personal computers, and traces of it are still found in the Windows operating system. DOS is still used in some embedded systems and for certain legacy 16-bit networks.