troubleshooting Question

How to remove characters from a string

Avatar of Rebel_no_1
Rebel_no_1Flag for China asked on
Operating SystemsMicrosoft DOS
5 Comments2 Solutions683 ViewsLast Modified:
I hope I can explain this properly as this is an extremely basic question.

Three DOS environment variables gets generated by a bat file. For example:
STRINGA=1234567890
STRINGB=1234567890
STRINGC=1234567890

A) What command must I run to remove the first three characters form STRINGA?

B) What command must I run to remove the last three characters from STRINGB?

C) What command must I run to remove the first and last three characters from STRINGC?

I want to end up with:

STRINGA=4567890
STRINGB=1234567
STRINGC=4567

Please note that the three variables may be letters or characters.
ASKER CERTIFIED SOLUTION
Qlemo
"Batchelor", Developer and EE Topic Advisor
Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros