> On Wed, Mar 16, 2022 at 12:18 PM Brandon Taylor
> <donnie126_2...@hotmail.com> wrote:
> >
> > Now, from what I've read in previous posts, it sounds like others have had 
> > success by replacing "start" with "try," such that the line now reads "call 
> > %dosdir%\bin\fdnet.bat try",


On Wed, Mar 16, 2022 at 1:05 PM dmccunney <dennis.mccun...@gmail.com> wrote:
>
> Other posts where?
>
> Start is a command. implemented by CMD.EXE in Windows, and can be used
> to start a new process in a window from the command line. I've used it
> to do that.  It does nor exist in pure MSDOS batch as implemented by
> COMMAND.COM
>
> Try/Catch is an exception handling routine, present in JavasScript and
> C# (and I think in Java.)  Just what is supposed to be  handling the
> try here?
>
> I'm not surprised you are getting an error.


It helps to look at what the person is trying to do before making a suggestion.

The line CALL FDNET.BAT TRY in a BAT file will execute ("call") the
second FDNET.BAT file, and FDNET.BAT gets the single argument TRY.  If
you look at FDNET.BAT, you will see these lines at around line 65:

││if /I "%1" == "TRY" goto Start
││if "%1" == "" goto Start
││goto %1
││goto End

And at around line 85, you have these lines:

││:Start
││vecho /t %_FDNET.LANG% INTRO
││REM if custom Packet Driver batch exists then don't test and just use it!
││if exist FDNETPD.BAT goto CustomPD
││
││if /I "%1" == "TRY" goto TryAnyway
││REM Detect Virtual Machine Platform
[..]



So CALL FDNET.BAT START and CALL FDNET.BAT TRY are similar, but with
TRY the FDNET.BAT will also attempt to load some other stuff (which
happens at FDNET.BAT line 158).



Jim


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to