QUOTE(gabehabe @ 31 Aug, 2008 - 09:03 AM)

You compiled it to a com? You can't just change the extension and expect it to work.
Here, I use this:
[click]I'm gonna make my own bat2exe though, it's easy enough~
Anyway, I digress.
I'm looking over your program now, there's a lot of unnecessary stuff in it, and you actually use the random numbers wrong. The range will start from 0, not 1.
I'll fix your code, and post it here when it's done.
edit:Here. I'm not sure why you repeat the if to set the string to the same thing, I assume it's just to make it more likely for a smaller event?
Anyway, you could do it with something like this to greatly reduce your code:
IF %var% lss 5 (echo %var% is either 0,1,2,3 or 4)Here's a little thing I threw together to try to show you how you can have multiple conditions:
CODE
@echo off
set /a var = %random% %% 10
if %var% lss 4 (echo %var% is either 0,1,2 or 3)
if %var% gtr 3 if %var% lss 8 == (echo %var% is either 4,5,6 or 7)
if %var% gtr 7 (echo %var% is either 8 or 9)
pause
Hope this helps

Thanks again

.
I really like that someone helps a lot

i never knew it could do that thanks again also another thing about that... How do i make it go in between not greater not less then not equal to but a greater and less then like something like this (THIS IS an example in ENGLISH)
a number greater then 20 but less then 30
Simple right but i do not know how to put it in batch!?!?! lol
can you hlep me with that now...
Also the question of this topic was how to fix the application problem...
So i guess that was a little off topic... nvm
your a mod LOL
thanks for suggesting that that will help me a lot more then the other way

EDIT: sorry i did not read your post alll the way so i did not see.. My question is already answered in your post LOL
EDIT AGAIN:
sorry to say but my program does not run after compileing with that program bat 2 exe plus i heard that the com rename to exe is the same exact thing because .com is a application
but .exe is the same thing its difference is really nothing exempt for its look

well please help me figure this out then thanks also i just fixed the coding
This post has been edited by coaster3000: 31 Aug, 2008 - 10:01 AM