Computing.Net > Forums > Programming > Math in batch files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Math in batch files

Reply to Message Icon

Name: unknown
Date: April 17, 2006 at 11:38:51 Pacific
OS: NA
CPU/Ram: NA
Product: NA
Comment:

Id ther a way to do addition and subtraction in a batch file?



Sponsored Link
Ads by Google

Response Number 1
Name: unknown
Date: April 17, 2006 at 11:40:37 Pacific
Reply:

Sorry!!!

Is there a way to do addition and subtraction in a batch file?


0

Response Number 2
Name: Mechanix2Go
Date: April 17, 2006 at 11:40:57 Pacific
Reply:

Depends on the OS.

Probably not in NA.


=====================================
If at first you don't succeed, you're about average.

M2Go



0

Response Number 3
Name: unknown
Date: April 17, 2006 at 12:14:16 Pacific
Reply:

in 98


0

Response Number 4
Name: IVO
Date: April 18, 2006 at 02:18:57 Pacific
Reply:

Under DOS kernel systems as Windows 9X/ME there is no way to perform arithmetic using plain batch statements.

On the contrary you can do it if running in a NT environment (Windows NT/2K/XP) using the Set /A internal command (part of Cmd.exe NOT Command.com).


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Math in batch files

Date Routines in Batch Files www.computing.net/answers/programming/date-routines-in-batch-files/15590.html

%DATE% in batch files with win98 www.computing.net/answers/programming/date-in-batch-files-with-win98/4007.html

Progress bar in batch file www.computing.net/answers/programming/progress-bar-in-batch-file/14919.html