Batch file that can do math
|
Original Message
|
Name: Krizzle
Date: March 23, 2004 at 04:37:05 Pacific
Subject: Batch file that can do math 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....
Report Offensive Message For Removal
|
|
Response Number 2
|
Name: dtech10
Date: March 23, 2004 at 08:27:21 Pacific
Subject: Batch file that can do math |
Reply: (edit)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.
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: Code One
Date: March 23, 2004 at 18:12:58 Pacific
Subject: Batch file that can do math
|
Reply: (edit)the above example only works in XP... I think...
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: Krizzle
Date: March 23, 2004 at 23:27:54 Pacific
Subject: Batch file that can do math
|
Reply: (edit)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
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: dtech10
Date: March 24, 2004 at 14:14:59 Pacific
Subject: Batch file that can do math |
Reply: (edit)Hi Well according to this theb set /a command works in Win2000. http://www.robvanderwoude.com/index.html
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: