| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Less than check |
Hi! Dantin, In a message to All you wrote: DH> Is there a way to allow a less than check in dos batch programming? DH> Some external software you can install or something. I've been DH> looking all over for some reference for this. Here is what I'm DH> doing trying to program a batch file that will check for a DH> number = lessthan number. ie.. IF "%1" < "10" THEN DH> GOTO LOW. DH> Any such beast? Yes. I use a doo-hickey called IfNumber.exe to do exactly that. Here's a copy of the File_Id.diz description: The MS-DOS command "if" can not do numeric predicatiton like bigger than, smaller than, bigger equival than or smaller equival than. Ifnumber.exe can. It returns an errorlevel, which you can use for batch programming. To see a demo of how I've used it, have a squiz at: http://home.austarnet.com.au/quinn261/binkbats/SRIF_Req.Txt IfNumber came through the BFDS a few years back, so, if you can't find it anywhere, you can get a copy from: http://home.austarnet.com.au/quinn261/Bat_Utils.html :) Cheers, Paul. --- Radius/W32 4.010/03.12.03-beta* Origin: Hey! Who took the cork off my lunch? (ZMH only) (3:640/384) SEEN-BY: 633/267 270 @PATH: 640/384 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.