Computing.Net > Forums > Programming > Batch file that can do math

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Batch file that can do math

Reply to Message Icon

Name: Krizzle
Date: March 23, 2004 at 04:37:05 Pacific
OS: win 2k
CPU/Ram: 64
Comment:

i would a small math batch file that can do small math problems like + - / *

it is the intension that i could use the batch file on my work and that i fil in the the hours that i have worked for the last week so.....

it also would be nice if the code could save those hours over 1 year or so.
so that you can have a save file....

I Would Realy apriciate it if some could help me....



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: March 23, 2004 at 06:20:49 Pacific
Reply:

Why don't you use a spreadsheet?


0

Response Number 2
Name: dtech10
Date: March 23, 2004 at 08:27:21 Pacific
Reply:

Hi

@echo off
set /a Num=12
set /a Num=%Num%*12
echo %Num%

type "set /?" on the command line to see operators that can be used.


0

Response Number 3
Name: Code One
Date: March 23, 2004 at 18:12:58 Pacific
Reply:

the above example only works in XP... I think...


0

Response Number 4
Name: Krizzle
Date: March 23, 2004 at 23:27:54 Pacific
Reply:

I think So To
and why i don't i use a spreadsheet that is simply because i would like to do it this way ....

but can no one give a a proper code for simple math

thnx in advanced


0

Response Number 5
Name: dtech10
Date: March 24, 2004 at 14:14:59 Pacific
Reply:

Hi
Well according to this theb set /a command works in Win2000.

http://www.robvanderwoude.com/index.html


0

Related Posts

See More



Response Number 6
Name: dtech10
Date: March 24, 2004 at 14:28:29 Pacific
Reply:

Sorry that should have been.

http://www.robvanderwoude.com/ntset.html


0

Sponsored Link
Ads by Google
Reply to Message Icon

c++ read file into array Resolve MX-record from DN...



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: Batch file that can do math

math in batch www.computing.net/answers/programming/math-in-batch/16890.html

Batch file Renaming Help www.computing.net/answers/programming/batch-file-renaming-help/15827.html

Batch File that opens network drive www.computing.net/answers/programming/batch-file-that-opens-network-drive/11683.html