Log in

View Full Version : Help... Programming


-Spector-
2007-10-15, 02:14 PM
I was trying to write a very simply math program in batch because I just want t divide two numbers but I haven't done this sort of easy programming in a long time.

Anyway,does anyone know how to make a batch program that accepts two different inputs, divides them an shows the output?

@echo off
Set First = INPUT
Set Second = INPUT
Set Result = First + Second
PRINT Result
pause


Thats what I had but it sucks.

WetWired
2007-10-15, 02:45 PM
You can't do math in DOS batch scripts. You can't issue an input prompt in DOS batch scripts.

D3V
2007-10-15, 02:46 PM
Go get VB6

-Spector-
2007-10-15, 03:26 PM
Sad :( Close plz.

!King_Amazon!
2007-10-15, 03:42 PM
I say we leave it open and ridicule spector.

D3V
2007-10-16, 09:16 AM
No really, get visual basic 6 and read up on some free tutorials on it, it's probably one of the best beginner programs out there from what I can understand.

Mantralord
2007-10-21, 02:09 PM
you can do math in NT batch files, just use set /a