Re: [Freedos-devel] Return instruction in batch files

2013-05-17 Thread Chris Evans
It would work with goto statement where goto stores it's line number on stack say and jump to label and when return statement is will return to the line number plus one on the stack On May 17, 2013 12:51 PM, "Rugxulo" wrote: > Hi, > > On Fri, May 17, 2013 at 2:34 PM, Bernd Blaauw wrote: > > Chri

Re: [Freedos-devel] Return instruction in batch files

2013-05-17 Thread Rugxulo
Hi, On Fri, May 17, 2013 at 2:34 PM, Bernd Blaauw wrote: > Chris Evans schreef op 17-5-2013 21:23: > >> I wonder if a return command /instruction can be added so batch files >> can have function like behavior ... > > Try 4DOS 8.00 as command interpreter, it's freeware nowadays (with > sources ava

Re: [Freedos-devel] Return instruction in batch files

2013-05-17 Thread Bernd Blaauw
Chris Evans schreef op 17-5-2013 21:23: > I wonder if a return command /instruction can be added so batch files > can have function like behavior ... Try 4DOS 8.00 as command interpreter, it's freeware nowadays (with sources available). Things like GOSUB are supported. Bernd --

Re: [Freedos-devel] Return instruction in batch files

2013-05-17 Thread Rugxulo
Hi, On Fri, May 17, 2013 at 2:23 PM, Chris Evans wrote: > I wonder if a return command /instruction can be added so batch files can > have function like behavior ... Some shells support it, e.g. DR-DOS or 4DOS or CMD. But a quick check (no surprise) of FreeCOM "exit /?" doesn't show it returning

[Freedos-devel] Return instruction in batch files

2013-05-17 Thread Chris Evans
I wonder if a return command /instruction can be added so batch files can have function like behavior ... -Chris Http://tawhakisoft.com/ Http://digitalatoll.com/ <-- php5 10gb FTP/web and email $75/yr -- AlienVault Unified