Link to home
Create AccountLog in
Microsoft DOS

Microsoft DOS

--

Questions

--

Followers

Top Experts

Avatar of angiemc1
angiemc1

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

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
Avatar of SteveGTRSteveGTR🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of angiemc1angiemc1

ASKER

Thanks, I'll give it a try

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Microsoft DOS

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.