| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | errorlevels |
RS> Below is my batch file, as far as I can see it should work, but it doesn't. RS> It just falls through to exit, doing nothing. Can anyone see what I have RS> wrong? RS> ---------------------------- RS> msgedp.exe RS> if errorlevel 0 goto EXIT RS> if errorlevel 1 goto NET RS> if errorlevel 2 goto ECHO RS> if errorlevel 3 goto BOTH RS> if errorlevel 16 goto EXIT RS> if errorlevel 18 goto ECHO RS> if errorlevel 19 goto BOTH RS> pause sigh :-) "if errorlevel" compares "greater or equal" you have to put the higher numbers to the top. if errorlevel 19 .. if errorlevel 18 ... should work fine. frank --- Msged/2 4.00* Origin: frobnicate foo (2:2448/605) SEEN-BY: 270/101 104 396/1 600/675 622/419 632/107 360 633/260 267 270 359 SEEN-BY: 635/728 639/252 670/218 3615/50 @PATH: 2448/605 600 24/888 396/1 270/101 633/359 632/360 635/728 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™.