Search found 2 matches

by shant93
14 Nov 2009 17:34
Forum: DOS Batch Forum
Topic: Need help with syntax
Replies: 1
Views: 3592

Update

Ok, I fixed a few mistakes, but now it outputs %_result% as nothing. Also, the first IF line that checks whether the number is greater than 10 doesn't work @echo off if "%1" GTR 10 (goto :bad) else (goto :good) :bad echo The number is too big goto :rend :good set /A _number...
by shant93
14 Nov 2009 10:01
Forum: DOS Batch Forum
Topic: Need help with syntax
Replies: 1
Views: 3592

Need help with syntax

I am new at batch file programming (very new), and I tried to make a batch file that would give the factorial of a number between 1 and 10 After fixing any issues with the first line of text, I tried it again and it looped the message "The syntax is incorrect". For those who don't know, th...