How to print Numbers to Words from batch file

Hello Experts,

Using this batch how to print %sum1% in words along with numbers

@echo off
echo Enter a number:
set /p num1=  
set /a sum1="num1 * 100000"
echo The total is %sum1%
goto :Loop
Rajat SehgalFounder Enhance TechnologyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rastoiWindows DTS expertCommented:
looking on your question, only one word comes to my mind: WHY ?
who might need this in batch nowadays?  But, probably someone here will have something like that saved.
Last time I was solving something similar, my batch was calling external vbs to do this :-)
Bill PrewIT / Software Engineering ConsultantCommented:
This would be very hard to do in pure DOS BAT commands, way past an effort I would do for a question answer.

If you really need something like this then I would suggest you find an implementation of this in VBS or Powershell, and then call that logic from your BAT script as needed to convert the number to a text version.  I've seen a number of these in my travels and even have a couple of VBS versions I played with...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.