home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,465 of 42,547   
   R.Wieser to All   
   Re: Interesting quirk of Windows on how    
   25 Aug 25 08:49:21   
   
   XPost: alt.comp.os.windows-10, alt.comp.os.windows-11   
   From: address@is.invalid   
      
   Arlen,   
      
   > 3. But the "echo." erred when the batch file is run from the   
   > cmd line.   
   > 'echo.' is not recognized as an internal or external command,   
   > operable program or batch file.   
      
   Have you checked if that command is actually the culprit ?   
      
   You should get the same error message when "echo." is the only line in the   
   batchfile.  If not than something else is going on.   
      
   > This causes it to be launched via cmd.exe /c, but without   
   > the usual batch file context and that changed how certain   
   > commands behave.   
      
   What is, according to you, a "batch file context" ?   
      
   Also, the "echo" command is an internal one.  As long as cmd.exe is   
   executing the batch file its available.   
      
   Furthermore, its possible that although "echo." is mentioned as the culprit   
   the actual error is in one of the lines just before it.   
      
   Have you tried to place a space between "echo" and "." ?  What happens ?   
   What happens when you put another command ("echo [%comspec%]", "dir *.*",   
   etc.) just before the "echo." commands in your batchfile ?   
      
   iow, you have found a work-around for the problem, but you have not found   
   the problem itself.  It could hit you again at any time.   
      
   Regards,   
   Rudy Wieser   
      
   p.s.   
   I wrote "[%comspec%]" and ment it that way, including the brackets.  If the   
   enclosed variable doesn't contain anything you should /at least/ get two   
   brackets.  In the case it contains one (or more!) spaces you will see that   
   too.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca